[AMC] Deluge - how to remove torrent after move

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
leetz
Posts: 1
Joined: 16 Feb 2016, 22:26

[AMC] Deluge - how to remove torrent after move

Post by leetz »

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

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
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [AMC] Deluge - how to remove torrent after move

Post by rednoah »

1.
You can't. The amc script doesn't talk to torrent clients.

2.
Do not use action MOVE. Use DUPLICATE instead.
:idea: Please read the FAQ and How to Request Help.
Post Reply