MultiCD movies not recognized

Any questions? Need some help?
Post Reply
cuccuizzo
Posts: 3
Joined: 27 Jun 2013, 09:15

MultiCD movies not recognized

Post 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!
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: MultiCD movies not recognized

Post 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+/)
:idea: Please read the FAQ and How to Request Help.
cuccuizzo
Posts: 3
Joined: 27 Jun 2013, 09:15

Re: MultiCD movies not recognized

Post 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.
cuccuizzo
Posts: 3
Joined: 27 Jun 2013, 09:15

Re: MultiCD movies not recognized

Post 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!
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: MultiCD movies not recognized

Post 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()
:idea: Please read the FAQ and How to Request Help.
meleth
Posts: 9
Joined: 05 Jul 2013, 13:57

Re: MultiCD movies not recognized

Post 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.
meleth
Posts: 9
Joined: 05 Jul 2013, 13:57

Re: MultiCD movies not recognized

Post 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.
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Query Rename History

Post by rednoah »

history script => http://www.filebot.net/forums/viewtopic ... &t=5#p2459

e.g.

Code: Select all

filebot -script fn:history --format "${to}"
:idea: Please read the FAQ and How to Request Help.
meleth
Posts: 9
Joined: 05 Jul 2013, 13:57

Re: Query Rename History

Post 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 :)
Post Reply