Illegal char <"> at index 3:

Support for Windows users
Post Reply
russco
Posts: 22
Joined: 17 Nov 2014, 17:58

Illegal char <"> at index 3:

Post by russco »

Here's the error message:

Code: Select all

Run script [fn:amc] at [Thu Apr 30 11:39:49 CEST 2020]
Parameter: seriesFormat = F:/TV/{n}/{'Season '+s}/{n} - {sxe} - {t}{'.'+lang}
Parameter: movieFormat = F:/Films/{n}
Parameter: music = y
Parameter: ut_label = 
Parameter: ut_state = 5
Parameter: ut_title = Bad.Influencer.S01E01.480p.x264-mSD[eztv].mkv
Parameter: ut_file = Bad.Influencer.S01E01.480p.x264-mSD[eztv].mkv
Parameter: ut_dir = G:"
java.nio.file.InvalidPathException: Illegal char <"> at index 3: G:\"\Bad.Influencer.S01E01.480p.x264-mSD[eztv].mkv
java.nio.file.InvalidPathException: Illegal char <"> at index 3: G:\"\Bad.Influencer.S01E01.480p.x264-mSD[eztv].mkv
	at net.filebot.util.FileSet.getPath(Unknown Source)
	at net.filebot.util.FileSet.contains(Unknown Source)
	at java_util_Set$contains.call(Unknown Source)
	at Script1.acceptFile(Script1.groovy:200)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1$_run_closure64.doCall(Script1.groovy:269)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.run(Script1.groovy:269)
	at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)

Error (o_O)
And here's the uTorrent code:

Code: Select all

cmd /c START /MIN cmd /c filebot -script fn:amc --output "F:" --def "seriesFormat=F:/TV/{n}/{'Season '+s}/{n} - {sxe} - {t}{'.'+lang}" "movieFormat=F:/Films/{n}" --log-file amc.log --action copy --conflict override -non-strict --def music=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
Everything was working great, but then something changed and it's not really working very well at all. Where have I messed up?
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Illegal char <"> at index 3:

Post by rednoah »

What does the Logger tab say? Please read the Troubleshooting section for details:
https://www.filebot.net/amc.html


For some reason, an invalid path is passed in as input path argument, probably due to badly quoted or escape command-line arguments:

Code: Select all

Parameter: ut_dir = G:"

The root cause is some variation of this:
rednoah wrote: 01 Aug 2012, 13:04 The folder paths to Location of Downloaded Files (--output) must not end with backslash \ because the value gets passed through as the %D token. So the final backslash \ will escape the double-quote " and mess up everything.
:idea: Please read Cmdline and Argument Passing for details.
:idea: Please read the FAQ and How to Request Help.
russco
Posts: 22
Joined: 17 Nov 2014, 17:58

Re: Illegal char <"> at index 3:

Post by russco »

This is what the logger tab said:

Code: Select all

[2020-04-30 11:39:35]  Executing: cmd /c START /MIN cmd /c filebot -script fn:amc --output "F:" --def "seriesFormat=F:/TV/{n}/{'Season '+s}/{n} - {sxe} - {t}{'.'+lang}" "movieFormat=F:/Films/{n}" --log-file amc.log --action copy --conflict override -non-strict --def music=y "ut_label=" "ut_state=5" "ut_title=Bad.Influencer.S01E01.480p.x264-mSD[eztv].mkv" "ut_file=Bad.Influencer.S01E01.480p.x264-mSD[eztv].mkv" "ut_dir=G:\"
I'm not sure why it's setting ut_dir as G:\ when --output "F:" is my utorrent code. G:\ is where the files are first downloaded to though - do they need a folder instead of the drive root?
russco
Posts: 22
Joined: 17 Nov 2014, 17:58

Re: Illegal char <"> at index 3:

Post by russco »

Okay I set a directory rather than the drive root for the download location, and now the error's gone.
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Illegal char <"> at index 3:

Post by rednoah »

Image


BAD

Code: Select all

"ut_dir=G:\"
"ut_dir=G:\Folder\"

GOOD

Code: Select all

"ut_dir=G:"
"ut_dir=G:\Folder"
:idea: Please read the FAQ and How to Request Help.
Post Reply