Source for CD1 and CD 2 Renaming question

Any questions? Need some help?
Post Reply
nzdreamer55
Posts: 168
Joined: 20 Jul 2012, 23:25

Source for CD1 and CD 2 Renaming question

Post by nzdreamer55 »

Hello everyone,

Currently I am using Filebot via commandline to rename my files. I have the following bat file that I use for movies. The issue that I am having is that I cannot get multiple CD movies renamed correctly. The {'.'+[CD$pi]} does not seem to work in my script.

filebot -script fn:amc %* --def "movieFormat=\\\\TITANSERVER/Movies/Movies/{n} ({y}) [{imdbid}]/{n} ({y}) [{imdbid}]{'.'+[vf]}{'.'+[resolution]}{'.'+[vc]}{'.'+[ac]}{'.'+[af]}{'.'+[source]}{'.'+[CD$pi]}" -r --action copy --conflict override -non-strict --db IMDB --def subtitles=en --def backdrops=y --def artwork=y --def clean=n --def ut_label=movie

I tried to modify from the FileBot help pages that list the following:
{n} ({y}){" CD$pi"}
The Man from Earth (2007) CD1

My input might look like this

Folder called
25th.Hour.LIMITED.DVDRip.XViD-ViTE

Inside the folder the following files

t25h-cd1-xvid.avi
t25h-cd2-xvid.avi
t25h-sample-xvid.avi
vite-xvid-25th.nfo

It seems to rename the first file, but not the second in the CD1-CD2 series.

It also seems to have a problem when disc are labeled A and B.

I think I have a problem with how to write my command line command and maybe how the files are initially labeled.

Any help is appreciated.

-S
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Source for CD1 and CD 2 Renaming question

Post by rednoah »

1. Your format is wrong.

First of all this is an illegal format just by itself:

Code: Select all

{'.'+[CD$pi]}
Then the console my try resolve $pi as a variable before filebot is even called, so what's actually passed in is:

Code: Select all

{'.'+[CD]}
Which is still wrong cause filebot doesn't have a variable called CD. You don't seem to understand how GStrings and $variables work:
http://groovy.codehaus.org/Strings+and+GString

This works:

Code: Select all

{" [CD$pi]"}

Code: Select all

{' [CD'+pi+']'}
2. MultiCD naming: {pi} VS {fn.match(/CD\d/)}
http://www.filebot.net/forums/viewtopic.php?f=5&t=806
:idea: Please read the FAQ and How to Request Help.
nzdreamer55
Posts: 168
Joined: 20 Jul 2012, 23:25

Re: Source for CD1 and CD 2 Renaming question

Post by nzdreamer55 »

Thanks so much for the help. I ended up doing the following and it works well

{'.CD'+pi}

Thanks for the help
Post Reply