From 008fd81db945058edcf527ae2708ea7dada69e2c Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Wed, 12 Mar 2014 10:46:09 +1030 Subject: [PATCH] delete torrent if uselink = move. --- TorrentToMedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 7ed73e32..096f257b 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -319,7 +319,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID): # Hardlink solution for uTorrent, need to implent support for deluge, transmission if clientAgent in ['utorrent', 'transmission', 'deluge'] and inputHash: # Delete torrent and torrentdata from Torrent client if processing was successful. - if deleteOriginal == 1 and result != 1: + if (deleteOriginal == 1 and result != 1) or useLink == 'move': # added uselink = move, if we move files, nothing to resume seeding. Logger.debug("MAIN: Deleting torrent %s from %s", inputName, clientAgent) if clientAgent == 'utorrent' and utorrentClass != "": utorrentClass.removedata(inputHash)