Page 1 of 1

seriesFormat error

Posted: 01 Mar 2013, 08:51
by burningfly
I am trying to get scripting going after switching from linux to windows, and I can't seem to migrate it across.
The issue I am having is that the seriesFormat isn't being handled correctly
ie.

E:\.torrents\completed>filebot -script fn:utorrent-postprocess . --output "E:\" --action hardlink --conflict skip -non-strict --def seriesFormat="TV Shows\{n}\Season {s}\{n} {s}x{e.pad(2)} {t}"
Argument: E:\.torrents\completed
Argument: E:\.torrents\completed\Shows\{n}\Season
Argument: E:\.torrents\completed\{s}\{n}
Argument: E:\.torrents\completed\{s}x{e.pad(2)}
Argument: E:\.torrents\completed\{t}
Exception: File not found: E:\.torrents\completed\Shows\{n}\Season <blah blah blah...>

I have searched high and low but I can't figure out why it fails in a .cmd or written directly into a cmd prompt file .. (the exact same thing works pasted into powershell though...)

Re: seriesFormat error

Posted: 01 Mar 2013, 10:04
by rednoah
The last back slash in "E:\" is escaping the " thus the argument continues until the next ". So... NEVER EVER USE BACKSLASH.

Re: seriesFormat error

Posted: 02 Mar 2013, 08:30
by burningfly
Wow, that was a dumb error... Thanks!

...
Sorry for wasting your precious time...

Re: seriesFormat error

Posted: 02 Mar 2013, 09:48
by rednoah
No worries. This is clearly the fault of the guy who thought using \ as escape character and file separator. Satan shall have his soul.

Seriously, half the support requests lately are about the many pitfalls of Windows CMD...