How to have it rename multiple volumes..

All your suggestions, requests and ideas for future development
Post Reply
Daniel
Posts: 2
Joined: 22 Nov 2014, 20:43

How to have it rename multiple volumes..

Post by Daniel »

Hi, I am running filebot from the command line - seem to have everything working except for multiple volume movies. I am using:

Code: Select all

filebot -script fn:amc --output "D:/Media/Test" --log-file amc.log --action copy -non-strict "D:\Media\Test\Test2\Whip.It.2009.HAPPY.NEW.YEAR.BDRip.XviD-iMBT" --def subtitles=en "movieFormat=D:/Media/Test/Movies/{n} ({y})/{n} ({y}){pi}" ut_label=movie
Everything unpacks ok, but it tries to rename both volumes into the same file name:

Code: Select all

Parameter: subtitles = en
Parameter: movieFormat = D:/Media/Test/Movies/{n} ({y})/{n} ({y}){pi}
Parameter: ut_label = movie
Argument: D:\Media\Test\Test2\Whip.It.2009.HAPPY.NEW.YEAR.BDRip.XviD-iMBT
... lots of unpacking lines ...
Group: [mov:whip it 2009] => [whip.it.bdrip.xvid-imbt-cd1.avi, whip.it.bdrip.xvid-imbt-cd2.avi, whip.it.bdrip.xvid-imbt-cd1.eng.srt, whip.it.bdrip.xvid-imbt-cd2.eng.srt]
No missing subtitles
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\Media\Test\Test2\Whip.It.2009.HAPPY.NEW.YEAR.BDRip.XviD-iMBT\CD1\imbt-whipit-cd1\CD1\whip.it.bdrip.xvid-imbt-cd1.avi]
Auto-detect movie from context: [D:\Media\Test\Test2\Whip.It.2009.HAPPY.NEW.YEAR.BDRip.XviD-iMBT\CD2\imbt-whipit-cd2\CD2\whip.it.bdrip.xvid-imbt-cd2.avi]
[COPY] Rename [D:\Media\Test\Test2\Whip.It.2009.HAPPY.NEW.YEAR.BDRip.XviD-iMBT\CD2\imbt-whipit-cd2\CD2\whip.it.bdrip.xvid-imbt-cd2.avi] to [D:\Media\Test\Movies\Whip It (2009)\Whip It (2009).avi]
[COPY] Rename [D:\Media\Test\Test2\Whip.It.2009.HAPPY.NEW.YEAR.BDRip.XviD-iMBT\CD2\imbt-whipit-cd2\CD2\whip.it.bdrip.xvid-imbt-cd2.eng.srt] to [D:\Media\Test\Movies\Whip It (2009)\Whip It (2009).srt]
Skipped [D:\Media\Test\Test2\Whip.It.2009.HAPPY.NEW.YEAR.BDRip.XviD-iMBT\CD1\imbt-whipit-cd1\CD1\whip.it.bdrip.xvid-imbt-cd1.avi] because [D:\Media\Test\Movies\Whip It (2009)\Whip It (2009).avi] already exists
Skipped [D:\Media\Test\Test2\Whip.It.2009.HAPPY.NEW.YEAR.BDRip.XviD-iMBT\CD1\imbt-whipit-cd1\CD1\whip.it.bdrip.xvid-imbt-cd1.eng.srt] because [D:\Media\Test\Movies\Whip It (2009)\Whip It (2009).srt] already exists
Processed 4 files
Done ヾ(@⌒ー⌒@)ノ
Not sure how to get filebot to give me a {pi} value.
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to have it rename multiple volumes..

Post by rednoah »

It should work if they're some what in the same folder structure. Maybe those files are just too many folders apart.

EDIT:

The common folder for both files is too far away. I guess structures like Movie/CD1/foo/CD1/bar just won't work. But anything half-way proper like Movie/CD1/foobar shouldn't be a problem.

If the files are already tagged with CD1/2 just fine you can just use match() to match the data from the original filename.
:idea: Please read the FAQ and How to Request Help.
Daniel
Posts: 2
Joined: 22 Nov 2014, 20:43

Re: How to have it rename multiple volumes..

Post by Daniel »

Been messing around with it and I still can't get {pi} to work. I even renamed the directory structure as you quoted; from the logs:

Code: Select all

filebot -script fn:amc --output "D:\movie" --log-file amc.log --action copy -non-strict "D:\movie\foo" --def subtitles=en "movieFormat=D:/movie/{n} ({y})/{n} ({y}){' -pt'+pi}"  ut_label=movie excludeList=amc.txt
Parameter: subtitles = en
Parameter: movieFormat = D:/movie/{n} ({y})/{n} ({y}){' -pt'+pi}
Parameter: ut_label = movie
Parameter: excludeList = amc.txt
Argument: D:\movie\foo
Using excludes from D:\movie\amc.txt (0)
Read archive [sparks-it2011-xvid-cd1.rar] and extract to [D:\movie\foo\CD1\sparks-it2011-xvid-cd1\CD1]
Skipped extracting files [D:\movie\foo\CD1\sparks-it2011-xvid-cd1\CD1\sparks-it2011-xvid-cd1.avi]
Read archive [sparks-it2011-xvid-cd2.rar] and extract to [D:\movie\foo\CD2\sparks-it2011-xvid-cd2\CD2]
Skipped extracting files [D:\movie\foo\CD2\sparks-it2011-xvid-cd2\CD2\sparks-it2011-xvid-cd2.avi]
Input: D:\movie\foo\CD1\sparks-it2011-xvid-cd1\CD1\sparks-it2011-xvid-cd1.avi
Input: D:\movie\foo\CD1\sparks-it2011-xvid-cd1\CD1\sparks-it2011-xvid-cd1.eng.srt
Input: D:\movie\foo\CD2\sparks-it2011-xvid-cd2\CD2\sparks-it2011-xvid-cd2.avi
Input: D:\movie\foo\CD2\sparks-it2011-xvid-cd2\CD2\sparks-it2011-xvid-cd2.eng.srt
Exclude: D:\movie\foo\CD1\sparks-it2011-xvid-cd1.r00
...
Exclude: D:\movie\foo\CD2\sparks-it2011-xvid-cd2.r48
Exclude: D:\movie\foo\CD2\sparks-it2011-xvid-cd2.sfv
Exclude: D:\movie\foo\sparks-it2011-xvid.nfo
Group: [mov:in time 2011] => [sparks-it2011-xvid-cd1.avi, sparks-it2011-xvid-cd2.avi]
Group: [mov:just go with it 2011] => [sparks-it2011-xvid-cd1.eng.srt, sparks-it2011-xvid-cd2.eng.srt]
No missing subtitles
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\movie\foo\CD1\sparks-it2011-xvid-cd1\CD1\sparks-it2011-xvid-cd1.avi]
Auto-detect movie from context: [D:\movie\foo\CD2\sparks-it2011-xvid-cd2\CD2\sparks-it2011-xvid-cd2.avi]
[COPY] Rename [D:\movie\foo\CD1\sparks-it2011-xvid-cd1\CD1\sparks-it2011-xvid-cd1.avi] to [D:\movie\Just Go With It (2011)\Just Go With It (2011).avi]
Skipped [D:\movie\foo\CD2\sparks-it2011-xvid-cd2\CD2\sparks-it2011-xvid-cd2.avi] because [D:\movie\Just Go With It (2011)\Just Go With It (2011).avi] already exists
Processed 2 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\movie\foo\CD1\sparks-it2011-xvid-cd1\CD1\sparks-it2011-xvid-cd1.eng.srt]
Auto-detect movie from context: [D:\movie\foo\CD2\sparks-it2011-xvid-cd2\CD2\sparks-it2011-xvid-cd2.eng.srt]
[COPY] Rename [D:\movie\foo\CD1\sparks-it2011-xvid-cd1\CD1\sparks-it2011-xvid-cd1.eng.srt] to [D:\movie\Just Go With It (2011)\Just Go With It (2011).srt]
Skipped [D:\movie\foo\CD2\sparks-it2011-xvid-cd2\CD2\sparks-it2011-xvid-cd2.eng.srt] because [D:\movie\Just Go With It (2011)\Just Go With It (2011).srt] already exists
Processed 2 files
Done ヾ(@⌒ー⌒@)ノ
So the files are in D:\movie\foo\CD1 and in D:\movie\foo\CD2, and the output directory is d:\movie
It doesn't pick up {pi} in either case and tries to rename them into the same file. Maybe there is some flag I need to pass in or something?

As you suggested, as a stop-gap I am using {file.path.match(/CD\d+/).upper()} ; but it is not a perfect solution as the files are not all named that elegantly.

EDIT: The unrared files get put into deeper directories but that is automatically done via Filebot and I cannot control where they are unpacked to. The paths above are where the rar files are.
Post Reply