seriesFormat error

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
burningfly
Posts: 2
Joined: 01 Mar 2013, 08:47

seriesFormat error

Post 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...)
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: seriesFormat error

Post by rednoah »

The last back slash in "E:\" is escaping the " thus the argument continues until the next ". So... NEVER EVER USE BACKSLASH.
:idea: Please read the FAQ and How to Request Help.
burningfly
Posts: 2
Joined: 01 Mar 2013, 08:47

Re: seriesFormat error

Post by burningfly »

Wow, that was a dumb error... Thanks!

...
Sorry for wasting your precious time...
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: seriesFormat error

Post 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...
:idea: Please read the FAQ and How to Request Help.
Post Reply