How To Use Season Expression in Script

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
leejk
Posts: 30
Joined: 03 Oct 2015, 04:18

How To Use Season Expression in Script

Post by leejk »

Hello,

Using a Mac terminal, I have typed in the following and ran it: filebot -rename "The Simpsons.2015-09-27.mkv" --db TheTVDB --format "{n}.{s00e00}-{t}" -non-strict --action move --output "/Volumes/video/TV/The Simpsons/Season "{s}

However instead of the expected "Season 6" folder being created, it creates a literal "Season {s}" folder. Why is the expression not being interpreted?

thx
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How To Use Season Expression in Script

Post by rednoah »

--format takes a format expression (which typically contains variables). --output takes a file path (which can't contain variables). So you'll need to specify the variable parts of your format in the --format parameter.
:idea: Please read the FAQ and How to Request Help.
leejk
Posts: 30
Joined: 03 Oct 2015, 04:18

Re: How To Use Season Expression in Script

Post by leejk »

ok got it, thx.
Post Reply