Filebot error when running command after torrent completion

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Deldran
Posts: 8
Joined: 25 Nov 2016, 02:42

Filebot error when running command after torrent completion

Post by Deldran »

Hello,

I am using qbittorrent 3.3.10 on Linux Mint 18.1. I am getting a java error when the amc script is called on torrent completion.

I am not sure what this "invalid parameter:map" means. Any help would be greatly appreciated. Thanks.

sysinfo

Code: Select all

andrew@mint ~ $ filebot -script fn:sysinfo
FileBot 4.7.7 (r4678)
JNA Native: 4.0.1
MediaInfo: 0.7.88
p7zip: Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
Chromaprint: 1.1.0
Extended Attributes: OK
GVFS: OK
Script Bundle: 2017-01-05 (r470)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_121
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 878 MB Max Memory / 18 MB Used Memory
OS: Linux (amd64)
Package: DEB
Data: /home/andrew/.filebot
uname: Linux mint 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
amc.log error

Code: Select all

Parameter: ut_dir = /mnt/torrents/unprocessed/24.Legacy.S01E01.PROPER.720p.HEVC.x265-MeGusta
Parameter: ut_kind = multi
Parameter: ut_title = 24.Legacy.S01E01.PROPER.720p.HEVC.x265-MeGusta
Parameter: ut_label = tv
Use excludes: /home/andrew/amc.excludes
Input: /mnt/torrents/unprocessed/24.Legacy.S01E01.PROPER.720p.HEVC.x265-MeGusta/24.Legacy.S01E01.PROPER.720p.HEVC.x265-MeGusta.mkv
Group: [tvs:24 legacy] => [24.Legacy.S01E01.PROPER.720p.HEVC.x265-MeGusta.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [24 Legacy]
Fetching episode data for [24: Legacy]
Fetching episode data for [The Legacy]
[DUPLICATE] Rename [/mnt/torrents/unprocessed/24.Legacy.S01E01.PROPER.720p.HEVC.x265-MeGusta/24.Legacy.S01E01.PROPER.720p.HEVC.x265-MeGusta.mkv] to [/media/TV Shows/24 - Legacy/Season 01/24 - Legacy - S01E01 - 12.00 Noon - 1.00 P.M.mkv]
[DUPLICATE] Failed to rename [/mnt/torrents/unprocessed/24.Legacy.S01E01.PROPER.720p.HEVC.x265-MeGusta/24.Legacy.S01E01.PROPER.720p.HEVC.x265-MeGusta.mkv]
Processed 0 files
/media/TV Shows
Processing 1 unsorted files
Illegal parameter: map
java.lang.IllegalArgumentException: Illegal parameter: map
        at net.filebot.cli.ScriptShellBaseClass.lambda$getArgumentBean$1(ScriptShellBaseClass.java:470)
        at net.filebot.cli.ScriptShellBaseClass.getArgumentBean(ScriptShellBaseClass.java:464)
        at net.filebot.cli.ScriptShellBaseClass.rename(ScriptShellBaseClass.java:346)
        at Script1.run(Script1.groovy:491)
        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:113)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:30)
        at net.filebot.Main.main(Main.java:120)
Caused by: java.lang.NoSuchFieldException: map
        at net.filebot.cli.ScriptShellBaseClass.lambda$getArgumentBean$1(ScriptShellBaseClass.java:466)
        ... 8 more

Failure (°_°)
command that is run on competition from qbittorrent

Code: Select all

filebot -script fn:amc --output "/media" --action duplicate --conflict skip -non-strict --log-file /home/andrew/amc.log --def excludeList=/home/andrew/amc.excludes unsorted=y music=y artwork=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot error when running command after torrent completion

Post by rednoah »

The unsorted feature is broken in r4678.

Please try r4762 (i.e. FileBot_4.7.8_B3) or higher:
https://sourceforge.net/projects/filebo ... ebot/HEAD/
:idea: Please read the FAQ and How to Request Help.
Deldran
Posts: 8
Joined: 25 Nov 2016, 02:42

Re: Filebot error when running command after torrent completion

Post by Deldran »

Thank you.

That corrected that issue,
Now I am running into another. After I got it calling the command properly after a mostly default naming scheme, i wanted to change the scheme of my tv shows. This is needed to add some info like resolution and codec so my management programs (sonarr, and radarr) are aware of the quality and will not attempt to redownload the files.

Below is what I have added to the command for qbittorrent to run. With this added it does not even create an amc.log file. Which might mean an issue with qbittorrent, thought I would see your thoughts on it.

Code: Select all

filebot -script fn:amc --output "/mnt/media" --action duplicate --conflict skip -non-strict --log-file /home/andrew/amc.log --def excludeList=/home/andrew/amc.excludes --def seriesFormat="TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}.{source}.{vf}.{ac}" unsorted=y music=y artwork=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot error when running command after torrent completion

Post by rednoah »

What does the command-line output say?
:idea: Please read the FAQ and How to Request Help.
Deldran
Posts: 8
Joined: 25 Nov 2016, 02:42

Re: Filebot error when running command after torrent completion

Post by Deldran »

It never creates an amc.log file.
As far as I can tell, there are no system level logs associated with qbittorrent to look at to see if any errors happened when it tried to run the command.
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot error when running command after torrent completion

Post by rednoah »

Step 1: Find out what exact command qBT is executing.
Step 2: Execute that command in CMD and see what the output says.
:idea: Please read the FAQ and How to Request Help.
Deldran
Posts: 8
Joined: 25 Nov 2016, 02:42

Re: Filebot error when running command after torrent completion

Post by Deldran »

I put the command I was running in the post above. I will post it again
Unfortunately, I cannot run that command verbatim because it is passing variable from qBT. Like %L and so fourth.
So sense I can not run the exact command in the command line, im not sure what trying to replicate a similar but not the same command would do. It appears filebot works fine outside of being called from qbittorrent.

Code: Select all

filebot -script fn:amc --output "/mnt/media" --action duplicate --conflict skip -non-strict --log-file /home/andrew/amc.log --def excludeList=/home/andrew/amc.excludes --def seriesFormat="TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}.{source}.{vf}.{ac}" unsorted=y music=y artwork=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
Post Reply