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