AMC Issue - windows & qbittorrent

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Drnrg
Posts: 3
Joined: 05 Jan 2016, 09:38

AMC Issue - windows & qbittorrent

Post by Drnrg »

OS: Windows 8.1
Java: Java 8 v66 - 64bit build 1.8.0_66-b18
Client: qBitTorrent v3.3.1

My script on completion:

Code: Select all

filebot.launcher.exe -script fn:amc --output "D:/" --action move --conflict skip -non-strict "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L" --def excludeList=amc.excludes unsorted=y music=n artwork=n clean=y "movieFormat=Movies/{n} ({y}){' CD'+pi}" --log-file amc.log
Logs out the following error to amc.log

Code: Select all

WARNING: Illegal Argument: java.io.IOException: The filename, directory name or volume label syntax is incorrect (ut_dir=D:\Downloads\Torrents\How To Train Your Dragon (2010))
Run script [fn:amc] at [Tue Jan 05 21:01:47 AEDT 2016]
Parameter: excludeList = amc.excludes
Parameter: unsorted = y
Parameter: music = n
Parameter: artwork = n
Parameter: clean = y
Parameter: movieFormat = Movies/{n} ({y}){' CD'+pi}
Argument: C:\Program Files (x86)\qBittorrent\ut_dir=D:\Downloads\Torrents\How To Train Your Dragon (2010)
Argument: C:\Program Files (x86)\qBittorrent\ut_kind=multi
Argument: C:\Program Files (x86)\qBittorrent\ut_title=How To Train Your Dragon (2010)
Argument: C:\Program Files (x86)\qBittorrent\ut_label=
File not found: C:\Program Files (x86)\qBittorrent\ut_dir=D:\Downloads\Torrents\How To Train Your Dragon (2010)
Failure (°_°)
Any ideas? I can't see what's going wrong, except for the illegal argument which could have something to do with the way qbittorrent passes in it's parameters :S
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Issue - windows & qbittorrent

Post by rednoah »

--def is there for a reason.

@see viewtopic.php?f=4&t=215#p9774
:idea: Please read the FAQ and How to Request Help.
Drnrg
Posts: 3
Joined: 05 Jan 2016, 09:38

Re: AMC Issue - windows & qbittorrent

Post by Drnrg »

The arguments are being passed in except for label - I can confirm the directory is populated with content too.

Is your code expecting the arguments to be passed in after the --def flag, because that seems to be handled correctly anyway (according to the output)?

Script works perfectly fine when I run it manually from the command line, just trying to figure out why qbt isn't working.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Issue - windows & qbittorrent

Post by rednoah »

Yes, --def is there for a reason, which is passing in script parameters.

YES

Code: Select all

--def "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
NO

Code: Select all

"ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
You could easily have figured this out by comparing the example that works, with your call that doesn't work, and see what's different.
:idea: Please read the FAQ and How to Request Help.
Drnrg
Posts: 3
Joined: 05 Jan 2016, 09:38

Re: AMC Issue - windows & qbittorrent

Post by Drnrg »

So that works thanks for your help

unusual that the code and logs seem to indicate that ut_dir etc.. are all correctly populated - you might want to look at that as a bug.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Issue - windows & qbittorrent

Post by rednoah »

The log most obviously shows that you're doing something very wrong, as seen be the fact that the parameters are interpreted as file paths.
:idea: Please read the FAQ and How to Request Help.
Post Reply