From fa84be4a2e291a101fc920583a09830373d685c0 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Thu, 9 Jan 2014 09:08:07 +1030 Subject: [PATCH] always pasue torrents before processing. fixes #234 --- TorrentToMedia.py | 4 ++-- changelog.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index a1412b90..ed2d53ad 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -82,7 +82,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID): sys.exit() # Hardlink solution for uTorrent, need to implent support for deluge, transmission - if clientAgent in ['utorrent', 'transmission'] and inputHash and useLink != "no": + if clientAgent in ['utorrent', 'transmission'] and inputHash: if clientAgent == 'utorrent': try: Logger.debug("MAIN: Connecting to %s: %s", clientAgent, uTorrentWEBui) @@ -263,7 +263,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID): continue # Hardlink solution for uTorrent, need to implent support for deluge, transmission - if clientAgent in ['utorrent', 'transmission'] and inputHash and useLink != "no": + if clientAgent in ['utorrent', 'transmission'] and inputHash: # Delete torrent and torrentdata from Torrent client if processing was successful. if deleteOriginal == 1 and result != 1: Logger.debug("MAIN: Deleting torrent %s from %s", inputName, clientAgent) diff --git a/changelog.txt b/changelog.txt index 9cd6cf1c..6110721d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Impacts NZBs SABnzbd 0.7.17+ now uses 8 arguments, not 7. These scripts now support the extra argument. Impacts Torrents +Always pause before processing. Moved delete to end of routine, only when succesful process occurs. Don't flatten hp category (in case multi cd album) Added UserScript to be called for un-categorized downloads and other defined categories.