Invalid usage: use either script parameters [dir:/b] or file arguments [/a] but not both
Posted: 03 Oct 2022, 16:32
Hey,
I've been following the steps in the threads below:
[*] qBittorrent setup: viewtopic.php?p=9774#p9774
[*] Plex naming schemes: viewtopic.php?t=4116
What I built then is the command below:
Everything worked quite well in CLI, as expected. Problem is when I execute the same command from qBittorrent when a download ends. What I tried was:
args.txt contains the values below:
None of the three options worked. Output is the same for all the qBittorrent execs:
I can't find what's the issue here. Could you please suggest me something?
Thank you!
I've been following the steps in the threads below:
[*] qBittorrent setup: viewtopic.php?p=9774#p9774
[*] Plex naming schemes: viewtopic.php?t=4116
What I built then is the command below:
Code: Select all
/usr/bin/filebot -script 'fn:amc' /mnt/downloads --output /mnt/media --action duplicate -non-strict --conflict auto --lang es --log all --log-file '/root/.filebot/logs/amc_execution.log' --def 'music=y' 'unsorted=y' 'deleteAfterExtract=y' 'pushbullet=KEY' 'plex=HOST:TOKEN' 'seriesFormat=tv/{plex.tail}' 'movieFormat=movies/{ ~plex % {" by $director"} % {" [$vf, $vc, $ac]"} % { " [edition-${tags[0]}]" } }' 'unsortedFormat=Unsorted/{fn}' 'excludeList=/root/.filebot/.excludes' 'minFileSize=0' 'minLengthMS=0'
Code: Select all
- /usr/bin/filebot -script 'fn:amc' /mnt/downloads --output /mnt/media --action duplicate -non-strict --conflict auto --lang es --log all --log-file '/root/.filebot/logs/amc_execution.log' --def 'music=y' 'unsorted=y' 'deleteAfterExtract=y' 'pushbullet=KEY' 'plex=HOST:TOKEN' 'seriesFormat=tv/{plex.tail}' 'movieFormat=movies/{ ~plex % {" by $director"} % {" [$vf, $vc, $ac]"} % { " [edition-${tags[0]}]" } }' 'unsortedFormat=Unsorted/{fn}' 'excludeList=/root/.filebot/.excludes' 'minFileSize=0' 'minLengthMS=0' "ut_label=%L" "ut_title=%N" "ut_kind=multi" "ut_dir=%F"
- /usr/bin/filebot @/root/.filebot/scripts/args.txt --def "ut_label=%L" "ut_title=%N" "ut_kind=multi" "ut_dir=%F"
- /usr/bin/filebot @/root/.filebot/scripts/args.txt "ut_label=%L" "ut_title=%N" "ut_kind=multi" "ut_dir=%F"
Code: Select all
-script
fn:amc
/mnt/downloads
--output
/mnt/media
--action
duplicate
-non-strict
--conflict
auto
--lang
es
--log
all
--def
music=y
unsorted=y
deleteAfterExtract=y
pushbullet=KEY
plex=HOST:TOKEN
seriesFormat=tv/{plex.tail}
movieFormat=movies/{ ~plex % {" by $director"} % {" [$vf, $vc, $ac]"} % { " [edition-${tags[0]}]" } }
unsortedFormat=Unsorted/{fn}
excludeList=/root/.filebot/.excludes
minFileSize=0
minLengthMS=0
Code: Select all
Bad system encoding: ANSI_X3.4-1968
Invalid usage: use either script parameters [label:TV, title:La tierra de los muertos vivientes (2005) (Unrated Director's Cut) [BDRip 1080p x264 DTS 5.1].mkv, kind:multi, dir:/mnt/downloads/La tierra de los muertos vivientes (2005) (Unrated Director's Cut) [BDRip 1080p x264 DTS 5.1].mkv] or file arguments [/mnt/downloads] but not both
Bad system encoding: ANSI_X3.4-1968
Invalid usage: use either script parameters [label:movies, title:Suavemente me mata (2002) [BDrip 720p x264 Dual AC3 Subs].mkv, kind:multi, dir:/mnt/downloads/Suavemente me mata (2002) [BDrip 720p x264 Dual AC3 Subs].mkv] or file arguments [/mnt/downloads] but not both
Thank you!