Amc Script working in CMD but not qbittorent

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
TheDynomite
Posts: 2
Joined: 06 Aug 2018, 02:34

Amc Script working in CMD but not qbittorent

Post by TheDynomite »

I have just started using filebot and im liking how much customization there is. My problem is that i can get the amc script working in qbittorent but the code works in cmd. The Code i am using is this:

Code: Select all

filebot -script fn:amc --output "M:/" --def seriesFormat="M:/TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} {s00e00} - {t} ({vf})" movieFormat="M:/Movies/{n} ({y})/{n}" --def subtitles=en --action move --conflict skip -non-strict --log-file "K:/Unorganised Downloads/amc.log" --def unsorted=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=K:/Unorganised Downloads"
Now the output of the amc.log after qbittorent has run is

Code: Select all

Run script [fn:amc] at [Mon Aug 06 09:17:32 AWST 2018]
Parameter: seriesFormat = M:/TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} {s00e00} - {t} ({vf})
Parameter: movieFormat = M:/Movies/{n} ({y})/{n}
Parameter: subtitles = en
Parameter: unsorted = y
Parameter: ut_label = 
Parameter: ut_state = %S
Parameter: ut_title = Quantico.S03E13.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg]
Parameter: ut_kind = %K
Parameter: ut_file = K:\Unorganised Downloads\Quantico.S03E13.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg]
Parameter: ut_dir = K:\Unorganised Downloads
Bad ut_state value: %S
Bad ut_kind value: %K
Illegal char <:> at index 26: K:\Unorganised Downloads\K:\Unorganised Downloads\Quantico.S03E13.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg]
java.nio.file.InvalidPathException: Illegal char <:> at index 26: K:\Unorganised Downloads\K:\Unorganised Downloads\Quantico.S03E13.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg]
	at net.filebot.util.FileSet.getPath(FileSet.java:90)
	at net.filebot.util.FileSet.contains(FileSet.java:82)
	at java_util_Set$contains.call(Unknown Source)
	at Script1.acceptFile(Script1.groovy:267)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at Script1$_run_closure47.doCall(Script1.groovy:330)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at Script1.run(Script1.groovy:330)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:127)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
	at net.filebot.Main.main(Main.java:116)

Failure (°_°)
Also here is the amc.log for when i put it through the command prompt

Code: Select all

Run script [fn:amc] at [Mon Aug 06 10:52:07 AWST 2018]
Parameter: seriesFormat = M:/TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} {s00e00} - {t} ({vf})
Parameter: movieFormat = M:/Movies/{n} ({y})/{n}
Parameter: subtitles = en
Parameter: unsorted = y
Parameter: ut_label = %L
Parameter: ut_state = %S
Parameter: ut_title = %N
Parameter: ut_kind = %K
Parameter: ut_file = %F
Parameter: ut_dir = K:\Unorganised Downloads
Bad ut_label value: %L
Bad ut_state value: %S
Bad ut_title value: %N
Bad ut_kind value: %K
Bad ut_file value: %F
Input: K:\Unorganised Downloads\Quantico.S03E13.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg]\Quantico S03E13 - Who Are You.mkv
xattr: [Quantico S03E13 - Who Are You.mkv] => [Quantico - 3x13 - Who Are You?]
Group: [tvs:quantico] => [Quantico S03E13 - Who Are You.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Lookup by hash failed: The response could not be parsed.
No matching subtitles found: K:\Unorganised Downloads\Quantico.S03E13.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg]\Quantico S03E13 - Who Are You.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Quantico]
Fetching episode data for [Quantico]
Stripping invalid characters from new path: M:/TV Shows/Quantico/Season 3/Quantico S03E13 - Who Are You? (1080p)
[MOVE] from [K:\Unorganised Downloads\Quantico.S03E13.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg]\Quantico S03E13 - Who Are You.mkv] to [M:\TV Shows\Quantico\Season 3\Quantico S03E13 - Who Are You (1080p).mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
Its weird how how the folder location appears twice in the folder location K:\Unorganised Downloads\K:\Unorganised Downloads\ . I have been trying to get this to work for a while but i dont know what im doing wrong. I know qbittorent has had needed certain parameters in this past but there are no clear posts on if i need any in the current iteration.

Any Help would be appreciated.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Amc Script working in CMD but not qbittorent

Post by rednoah »

Have you tried this?
viewtopic.php?f=4&t=215#p9774

This will work to pass in folders or single files from qBT just fine:

Code: Select all

--def "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
:idea: Note the absence of --def ut_file which must not be used if you're using qBT, such as in your case. AFAIK, it's only useful for uT or software that passes download folder and relative file path separately.
:idea: Please read the FAQ and How to Request Help.
TheDynomite
Posts: 2
Joined: 06 Aug 2018, 02:34

Re: Amc Script working in CMD but not qbittorent

Post by TheDynomite »

Yep that ended up doing the trick adding that line of code

I tried doing the utorrent-postprocess.pyw but it never worked even in testing and it turns out you dont even need it.

Thanks for your help
Post Reply