Page 1 of 1

Broken format expressions?

Posted: 02 Feb 2015, 16:55
by adonisk
So i've been using Filebot since like 4.2 or 4.3 and suddenly the "format" I've been using since the start stopped working, here is the expression:

Code: Select all

{file =~ /Minix\/Other\/Todo/ ? ('/home/adonisk/downloads/Minix/' + (database =~ /Anidb/ ? 'Animes' : 'TV Shows') + '/' + primaryTitle.ascii() +'/') : ''}{primaryTitle.ascii().space('.')} - s{(episode.season ? s : 1).pad(2)}e{e.pad(episodelist.size() < 99 ? 2 : 3)} - {t.ascii().space('.').take(64)}
Here is the screenshot of the expression erroring out:
Screenshot.png
I've tried trimming the expression down as much as possible and it kept hitting error after error with things like `t`, `file` etc

Filebot 4.5.6, ArchLinux, OpenJDK version 1.8.0_31

Re: Broken format expressions?

Posted: 02 Feb 2015, 17:19
by rednoah
It's a warning, and you can ignore it. It'll probably work if you apply the format on real data.

Re: Broken format expressions?

Posted: 02 Feb 2015, 17:21
by adonisk
The problem is, it doesn't apply it (it ignores the filepath that I'm appending if it's inside the "Todo" directory I've specified)