[AMC] Deluge - how to remove torrent after move
Posted: 16 Feb 2016, 22:31
Im using AMC script with filebot to move torrents after they are completed. The script works very well, but my problem is after I move the file and remove those original folders(clean=y), deluge reports error because files are missing and when i restart deluge it starts to redownload torrent.
My question how do u deal with this kind of problem when moving the files in new directory. Is there some way to remove completed torrents in deluge or even better seed from new location?
This is my current script
My question how do u deal with this kind of problem when moving the files in new directory. Is there some way to remove completed torrents in deluge or even better seed from new location?
This is my current script
Code: Select all
#!/bin/sh
TORRENT_ID="$1"
TORRENT_NAME="$2"
TORRENT_PATH="$3"
#Filebot proccess torrent
filebot -script fn:amc --output "/mnt/share/Torrents" --action move --conflict skip -non-strict --log-file amc.log --def excludeList=.excludes unsorted=y music=y --def clean=y --def subtitles=en --def "seriesFormat=TV Shows/{n}/Season {s}/{n} - {s00e00} - {t}" "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
# Update Video Library on Raspberry Pi Kodi
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://192.168.1.145:9090/jsonrpc