Page 1 of 1

MultiCD movies not recognized

Posted: 27 Jun 2013, 09:41
by cuccuizzo
Hi,

I just started using Filebot and amc (on Linux, using a bash script to post-process files downloaded by amule).
Everything seems to work fine, except for multi-cd files if they are processed separately.

To make things more clear:

Both files (CD1 end CD2) exist:

Code: Select all

Locking /home/izio/.filebot/logs/amc.log
Parameter: music = n
Parameter: artwork = n
Parameter: backdrops = n
Parameter: seriesFormat = SERIES/{n}/{episode.special ? "Specials" : "Season "+s}/{n}.{episode.special ? "0x"+special.pad(2) : sxe}.{t.replaceAll(/[`´\u2018\u2019\u02bb]/, "'").replaceAll(/[!?.]+$/).replacePart(', Part $1')}
Parameter: movieFormat = FILM/{n} ({y})/{n} ({y}){" CD$pi"}
Parameter: ut_dir = /home/izio/TEST
Parameter: ut_kind = multi
Parameter: ut_title = 
Input: /home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi
Input: /home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi
La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi [series: null, movie: La bella società (2009)]
La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi [series: null, movie: La bella società (2009)]
Group: [tvs:null, mov:La bella società (2009), anime:null] => [La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi, La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi]
Auto-detect movie from context: [/home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi]
[MOVE] Rename [/home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi] to [/data/VIDEO/FILM/La bella società (2009)/La bella società (2009) CD1.avi]
[MOVE] Rename [/home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi] to [/data/VIDEO/FILM/La bella società (2009)/La bella società (2009) CD2.avi]
Processed 2 files
Done \u30fe(\uff20\u2312\u30fc\u2312\uff20)\u30ce
Only one file at a time exist:

Code: Select all

Locking /home/izio/.filebot/logs/amc.log
Parameter: music = n
Parameter: artwork = n
Parameter: backdrops = n
Parameter: seriesFormat = SERIES/{n}/{episode.special ? "Specials" : "Season "+s}/{n}.{episode.special ? "0x"+special.pad(2) : sxe}.{t.replaceAll(/[`´\u2018\u2019\u02bb]/, "'").replaceAll(/[!?.]+$/).replacePart(', Part $1')}
Parameter: movieFormat = FILM/{n} ({y})/{n} ({y}){" CD$pi"}
Parameter: ut_dir = /home/izio/TEST
Parameter: ut_kind = multi
Parameter: ut_title = 
Input: /home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi
La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi [series: null, movie: La bella società (2009)]
Group: [tvs:null, mov:La bella società (2009), anime:null] => [La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi]
[MOVE] Rename [/home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD1.avi] to [/data/VIDEO/FILM/La bella società (2009)/La bella società (2009).avi]
Processed 1 files
Done \u30fe(\uff20\u2312\u30fc\u2312\uff20)\u30ce

---

Locking /home/izio/.filebot/logs/amc.log
Parameter: music = n
Parameter: artwork = n
Parameter: backdrops = n
Parameter: seriesFormat = SERIES/{n}/{episode.special ? "Specials" : "Season "+s}/{n}.{episode.special ? "0x"+special.pad(2) : sxe}.{t.replaceAll(/[`´\u2018\u2019\u02bb]/, "'").replaceAll(/[!?.]+$/).replacePart(', Part $1')}
Parameter: movieFormat = FILM/{n} ({y})/{n} ({y}){" CD$pi"}
Parameter: ut_dir = /home/izio/TEST
Parameter: ut_kind = multi
Parameter: ut_title = 
Input: /home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi
La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi [series: null, movie: La bella società (2009)]
Group: [tvs:null, mov:La bella società (2009), anime:null] => [La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi]
Skipped [/home/izio/TEST/La.Bella.Societa.2009.iTALIAN.DVDRip.XviD-TRL.CD2.avi] because [/data/VIDEO/FILM/La bella società (2009)/La bella società (2009).avi] already exists
Processed 1 files
Done \u30fe(\uff20\u2312\u30fc\u2312\uff20)\u30ce
Any clue?

Thanks!

Re: MultiCD movies not recognized

Posted: 27 Jun 2013, 09:58
by rednoah
1. Re: {pi} binding
FileBot recognizes multi-part movies by matching multiple files to the same movie. Hence if you want to rename multi-part movies you need to pass all files into the same input set. The assumption here is only that parts are in alphabetical order.

2. Re: DIY via fn.match()
If your files happen to be well-named with CD123 then you can easily grab the CDindex from the filename via fn.match() like so:

e.g.

Code: Select all

fn.match(/CD\d+/)

Re: MultiCD movies not recognized

Posted: 27 Jun 2013, 10:16
by cuccuizzo
Thanks a lot for the prompt reply!

I'll make some tests as soon as I have a little time and will report back.

Re: MultiCD movies not recognized

Posted: 27 Jun 2013, 14:15
by cuccuizzo
I ended up with

Code: Select all

movieFormat ='FILM/{n} ({y})/{n} ({y}){" "+fn.match(/[Cc][Dd]\d+/).toUpperCase()}'
which seems to do the trick ;)

Thanks again for your help!

Re: MultiCD movies not recognized

Posted: 28 Jun 2013, 15:31
by rednoah
match(regex) is made case-insensitive by default so here's how I'd write it:

Code: Select all

fn.match(/CD\d+/).upper()

Re: MultiCD movies not recognized

Posted: 08 Jul 2013, 08:55
by meleth
rednoah wrote:match(regex) is made case-insensitive by default so here's how I'd write it:

Code: Select all

fn.match(/CD\d+/).upper()
Perfect thanks, works great.

Re: MultiCD movies not recognized

Posted: 08 Jul 2013, 13:13
by meleth
Offtopic. Is it possible to access the filebot history/log from the cli and returning the last processed file in particular? I see that you can do it via your script engine but since i don't know how to use it, i'm writing my own perl wrapper for filebot and i'm more or less done, only thing left is making it notify xbmc to add the specific file.

Re: Query Rename History

Posted: 08 Jul 2013, 13:30
by rednoah
history script => http://www.filebot.net/forums/viewtopic ... &t=5#p2459

e.g.

Code: Select all

filebot -script fn:history --format "${to}"

Re: Query Rename History

Posted: 08 Jul 2013, 13:37
by meleth
rednoah wrote:history script => http://www.filebot.net/forums/viewtopic ... &t=5#p2459

e.g.

Code: Select all

filebot -script fn:history --format "${to}"
Thank you :)