Call AMC on only the torrent that was completed.
Posted: 19 Oct 2017, 17:35
Hey Everyone,
Here is my process:
---------
1. Sickrage or Manual add torrent to Deluge.
2. Execute Plugin -> On Torrent Complete execute: /home/joel/deluge-postprocess.sh
3. deluge-postprocess.sh:
This works great when I am downloading one torrent at a time. The problem I am experiencing now happens if I have multiple torrents downloading at once. As soon as one finishes, it will call the script and filebot will process them both. I end up with a lot of incomplete copies of files this way.
Is there a way to make filebot process only the folder of the completed torrent? IE /mnt/media/downloads/%torrentthatjustfinisheddownloading%
I've been rethinking my whole setup as well, so any suggestions to a good guide for Sickrage, Plex and Deluge(or something else) would be appreciated.
Thanks,
Joel
Here is my process:
---------
1. Sickrage or Manual add torrent to Deluge.
2. Execute Plugin -> On Torrent Complete execute: /home/joel/deluge-postprocess.sh
3. deluge-postprocess.sh:
Code: Select all
#!/bin/sh -xu
# Input Parameters
ARG_PATH="$3/$2"
ARG_NAME="$2"
ARG_LABEL="N/A"
# Configuration
CONFIG_OUTPUT="/mnt/media/complete" # if this script is called by the deluge user, then $HOME will NOT refer to YOUR user home, but paths such as /var/lib/deluge instead
sleep 120s
filebot -script fn:amc --log-file amc.log --def excludeList="amc.txt" subtitles=en "/mnt/media/downloads" --output "/mnt/media/complete" --action copy -non-strict --def skipExtract=n --def deleteAfterExtract=n --def exec="echo {quote f}" --conflict auto
Is there a way to make filebot process only the folder of the completed torrent? IE /mnt/media/downloads/%torrentthatjustfinisheddownloading%
I've been rethinking my whole setup as well, so any suggestions to a good guide for Sickrage, Plex and Deluge(or something else) would be appreciated.
Thanks,
Joel