Issue running filebot via uTorrent
Posted: 15 Dec 2013, 11:09
Hi,
Whenever uTorrent tries to run filebot, stderr returns "No such file or directory.", however if i run the script manually, it executes perfectly...
Script:
#!/bin/bash
TORRENT_NAME=$1
TORRENT_PATH=$2
TORRENT_LABEL=$3
TORRENT_KIND=$4
TORRENT_TITLE=$5
filebot -script fn:amc --output "/mnt/Storage/" --log-file "amc.log" --action move --conflict override -non-strict --def music=n subtitles=en artwork=n xbmc="192.168.0.123" deleteAfterExtract=y clean=y "ut_dir=$TORRENT_PATH" "ut_file=$TORRENT_NAME" "ut_kind=$TORRENT_KIND" "ut_title=$TORRENT_TITLE" "ut_label=$TORRENT_LABEL" "ut_state=5" "seriesFormat=TV Shows/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}" "movieFormat=Movies/{n} ({y})/{n} ({y})" &>> /home/xbmc/run.log
I originally had filebot executing straight from the uTorrent "Run Program" section, however that wasn't working and it wasnt giving me any errors etc...
Here is a line from the uTorrent log file:
[20131115 18:44:27] Executing: /home/xbmc/run.sh "Supernatural.S09E08.720p.HDTV.X264-DIMENSION.mkv" "/mnt/Storage/Downloads/Complete/TV" "TV" "single" "Supernatural.S09E08.720p.HDTV.X264-DIMENSION.mkv"
Any idea on how to fix it?
It's weird because it only doesnt work when being executed via uTorrent, works fine if i copy the "Executing: " command and run it, it works fine...
Whenever uTorrent tries to run filebot, stderr returns "No such file or directory.", however if i run the script manually, it executes perfectly...
Script:
#!/bin/bash
TORRENT_NAME=$1
TORRENT_PATH=$2
TORRENT_LABEL=$3
TORRENT_KIND=$4
TORRENT_TITLE=$5
filebot -script fn:amc --output "/mnt/Storage/" --log-file "amc.log" --action move --conflict override -non-strict --def music=n subtitles=en artwork=n xbmc="192.168.0.123" deleteAfterExtract=y clean=y "ut_dir=$TORRENT_PATH" "ut_file=$TORRENT_NAME" "ut_kind=$TORRENT_KIND" "ut_title=$TORRENT_TITLE" "ut_label=$TORRENT_LABEL" "ut_state=5" "seriesFormat=TV Shows/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}" "movieFormat=Movies/{n} ({y})/{n} ({y})" &>> /home/xbmc/run.log
I originally had filebot executing straight from the uTorrent "Run Program" section, however that wasn't working and it wasnt giving me any errors etc...
Here is a line from the uTorrent log file:
[20131115 18:44:27] Executing: /home/xbmc/run.sh "Supernatural.S09E08.720p.HDTV.X264-DIMENSION.mkv" "/mnt/Storage/Downloads/Complete/TV" "TV" "single" "Supernatural.S09E08.720p.HDTV.X264-DIMENSION.mkv"
Any idea on how to fix it?
It's weird because it only doesnt work when being executed via uTorrent, works fine if i copy the "Executing: " command and run it, it works fine...