[AMC] rtorrent instructions incomplete?
Posted: 05 Jul 2017, 09:40
Hello,
I just reinstalled and noticed that the instructions for AMC in rtorrent have changed a little.
I followed the instructions to the letter as described in viewtopic.php?f=4&t=215&p=5316 with the exception of the command which has changed as of 0.9.6 (which i am also using).
However it is never stated anywhere where to put the script or if i should change the path itself to be able to use the above line and thus my script never runs.
I have tried modifying the path like so:
{'`pwd`/home/user/rtorrent-postprocess.sh',$d.base_path=,$d.name=,$d.custom1=} (what is the `pwd` for ?)
{'/home/user/rtorrent-postprocess.sh',$d.base_path=,$d.name=,$d.custom1=}
{/home/user/rtorrent-postprocess.sh,$d.base_path=,$d.name=,$d.custom1=}
But none of them end up executing the script as no log appears.
i turned on logging for rtorrent but i don't think events that have to do with the executing of a script are logged, as everything it does appears except that.
ps: the script is executable, has the right permissions, has the right user:group and i'm restarting rtorrent with each modification.
Any help is appreciated, thanks!
edit: the script
I just reinstalled and noticed that the instructions for AMC in rtorrent have changed a little.
I followed the instructions to the letter as described in viewtopic.php?f=4&t=215&p=5316 with the exception of the command which has changed as of 0.9.6 (which i am also using).
Code: Select all
method.set_key=event.download.finished,filebot,"execute={'`pwd`/rtorrent-postprocess.sh',$d.base_path=,$d.name=,$d.custom1=}"
I have tried modifying the path like so:
{'`pwd`/home/user/rtorrent-postprocess.sh',$d.base_path=,$d.name=,$d.custom1=} (what is the `pwd` for ?)
{'/home/user/rtorrent-postprocess.sh',$d.base_path=,$d.name=,$d.custom1=}
{/home/user/rtorrent-postprocess.sh,$d.base_path=,$d.name=,$d.custom1=}
But none of them end up executing the script as no log appears.
i turned on logging for rtorrent but i don't think events that have to do with the executing of a script are logged, as everything it does appears except that.
ps: the script is executable, has the right permissions, has the right user:group and i'm restarting rtorrent with each modification.
Any help is appreciated, thanks!
edit: the script
Code: Select all
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=${3//%20/ }
if [[ $TORRENT_LABEL == "Anime "* ]]
then
filebot -script fn:amc --output "$HOME/downloads" --log-file "$HOME/amc.log" --action hardlink --conflict override -non-strict --def "ignore=(?i)Programs" "clean=y" "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" --filter "label =~ info.id" &
elif [[ $TORRENT_LABEL == "Anime_2 "* ]]
then
filebot -script fn:amc --output "$HOME/downloads" --log-file "$HOME/amc.log" --action hardlink --conflict override -non-strict --def "ignore=(?i)Programs" "clean=y" "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" --filter "label =~ info.id && age < 5" &
else
filebot -script fn:amc --output "$HOME/downloads" --log-file "$HOME/amc.log" --action hardlink --conflict override -non-strict --def "ignore=(?i)Programs" "clean=y" "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &