Part index variable in CLI
Posted: 18 Apr 2013, 20:31
I want a conditional ", Part n" on my movie format if there are likely more than 1 parts.
I've set my format up as this: /Volumes/Macintosh HD/MoviesTest/{n} ({y}){(pi == null ? '' : ", Part $pi")}
And it works fine in the GUI (see screenshot) But in the CLI the part index is not set to anything, but it isn't null either. Bug? Me doing something wrong?
> filebot --db IMDb --action test --format "/Volumes/pool-TEST/Movies/{n} ({y}){(pi == null ? '' : \", Part $pi\")}" -rename Iron.Man* -non-strict
Rename movies using [IMDb]
Auto-detect movie from context: [/Users/josh/Iron.Man.CD1.avi]
Auto-detect movie from context: [/Users/josh/Iron.Man.CD2.avi]
[TEST] Rename [/Users/josh/Iron.Man.CD1.avi] to [/Volumes/pool-TEST/Movies/Iron Man (2008), Part .avi]
[TEST] Rename [/Users/josh/Iron.Man.CD2.avi] to [/Volumes/pool-TEST/Movies/Iron Man (2008), Part .avi]
Processed 2 files
Done ?(?????)?
I've set my format up as this: /Volumes/Macintosh HD/MoviesTest/{n} ({y}){(pi == null ? '' : ", Part $pi")}
And it works fine in the GUI (see screenshot) But in the CLI the part index is not set to anything, but it isn't null either. Bug? Me doing something wrong?
> filebot --db IMDb --action test --format "/Volumes/pool-TEST/Movies/{n} ({y}){(pi == null ? '' : \", Part $pi\")}" -rename Iron.Man* -non-strict
Rename movies using [IMDb]
Auto-detect movie from context: [/Users/josh/Iron.Man.CD1.avi]
Auto-detect movie from context: [/Users/josh/Iron.Man.CD2.avi]
[TEST] Rename [/Users/josh/Iron.Man.CD1.avi] to [/Volumes/pool-TEST/Movies/Iron Man (2008), Part .avi]
[TEST] Rename [/Users/josh/Iron.Man.CD2.avi] to [/Volumes/pool-TEST/Movies/Iron Man (2008), Part .avi]
Processed 2 files
Done ?(?????)?