naming format and CD$pi on single files

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
meleth
Posts: 9
Joined: 05 Jul 2013, 13:57

naming format and CD$pi on single files

Post by meleth »

I'm writing a wrapper for filebot and i'm having some issues with getting the CD number in the file name when filebot gets them 1 file at a time.
ie.

Code: Select all

filebot -non-strict -rename --action copy "C:\new\film\We Bought a Zoo\We Bought a Zoo CD1.avi" --output c:\temp\film --format "{n} ({y})/{n} ({y}){\" CD$pi\"}" --db TheMovieDB

Code: Select all

filebot -non-strict -rename --action copy "C:\new\film\We Bought a Zoo\We Bought a Zoo CD2.avi" --output c:\temp\film --format "{n} ({y})/{n} ({y}){\" CD$pi\"}" --db TheMovieDB
Will create the folder and CD1 as: C:\temp\film\We Bought a Zoo (2011)\We Bought a Zoo (2011).avi
CD2 will be skipped cause it tries to use the same name.

If i just feed filebot the parent directory
ie.

Code: Select all

filebot -non-strict -rename --action copy "C:\new\film\We Bought a Zoo\" --output c:\temp\film --format "{n} ({y})/{n} ({y}){\" CD$pi\"}" --db TheMovieDB
It works and the files will have CD1 and CD2 in them.

I'm guessing that maybe filebot doesn't get the cd variable from the filename alone?

Suggestions, i need to get CD1 and CD2 respectivly in the renamed filenames while specifically giving filebot the files one by one.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: naming format and CD$pi on single files

Post by rednoah »

MultiCD naming: {pi} VS {fn.match(/CD\d/)}
http://www.filebot.net/forums/viewtopic ... 5067#p5066
Follow me on twitter or facebook => https://www.facebook.com/filebot ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply