Renaming Folders

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
Amishman
Donor
Posts: 51
Joined: 29 Dec 2013, 15:54

Renaming Folders

Post by Amishman »

I am trying to rename all of my folders to a new naming scheme. When I use my script in the cmd line using --action test, it works correctly. If I change it to --action move or copy I receive a Warning .

Here is my script:

Code: Select all

filebot -script fn:amc  --output "E:/" --log-file amc.log --action test --conflict auto -non-strict "/E:/Movies/3D" --def "movieFormat=Movies/{collection}/{n.replaceFirst(/^(?i)(The|A|An)\\s(.+)/, /$2, $1/)} {fn.contains('3d') || fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':\"\"}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, \" \") + ')'} ({y}) {genres[0]} {\"[$vf]\"}/{n} {fn.contains('3d') || fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':\"\"}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, \" \") + ')'} ({y})"
This is the results from --action test:
Rename movies using [TheMovieDB]
Auto-detect movie from context: [E:\Movies\3D\Wreck-It Ralph 3D (2012) [1080p]\Wreck-It Ralph 3D (2012).mp4]
[TEST] Rename [E:\Movies\3D\Wreck-It Ralph 3D (2012) [1080p]\Wreck-It Ralph 3D (2012).mp4] to [E:\Movies\Wreck-It Ralph 3D (2012) Adventure [1080p]\Wreck-It Ralph 3D (2012).mp4]
[TEST] Rename [E:\Movies\3D\Wreck-It Ralph 3D (2012) [1080p]\Wreck-It Ralph 3D (2012).srt] to [E:\Movies\Wreck-It Ralph 3D (2012) Adventure [1080p]\Wreck-It Ralph 3D (2012).srt]
Processed 2 files
This is the results from --action move or copy:
Input: E:\Movies\3D\Wreck-It Ralph 3D (2012) [1080p]\Wreck-It Ralph 3D (2012).mp4
Input: E:\Movies\3D\Wreck-It Ralph 3D (2012) [1080p]\Wreck-It Ralph 3D (2012).srt
Exclude: E:\Movies\3D\folder.png
Sep 11, 2014 9:08:23 PM net.filebot.media.MediaDetection readMetaInfo
WARNING: Unable to read xattr: null
Sep 11, 2014 9:08:28 PM net.filebot.media.MediaDetection readMetaInfo
WARNING: Unable to read xattr: null
User avatar
rednoah
The Source
Posts: 19150
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming Folders

Post by rednoah »

You can ignore that. It's just a warning that xattr isn't working.
:idea: Please read the FAQ and How to Request Help.
Amishman
Donor
Posts: 51
Joined: 29 Dec 2013, 15:54

Re: Renaming Folders

Post by Amishman »

Thank you Rednoah. It is worrking properly. My screen would fill up with that warning and I would stop it. After I let it go longer it started to move the files.
Post Reply