mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
allow headphones to remove torrent. fixes #279
This commit is contained in:
parent
78f92ad700
commit
fc451f054d
2 changed files with 5 additions and 7 deletions
|
@ -314,6 +314,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
except:
|
||||
Logger.exception("MAIN: Failed to move file: %s", file)
|
||||
continue
|
||||
shutil.rmtree(outputDestination)
|
||||
|
||||
# Hardlink solution for uTorrent, need to implent support for deluge, transmission
|
||||
if clientAgent in ['utorrent', 'transmission', 'deluge'] and inputHash:
|
||||
|
@ -322,13 +323,9 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
Logger.debug("MAIN: Deleting torrent %s from %s", inputName, clientAgent)
|
||||
if clientAgent == 'utorrent' and utorrentClass != "":
|
||||
utorrentClass.removedata(inputHash)
|
||||
if not inputCategory in hpCategory:
|
||||
utorrentClass.remove(inputHash)
|
||||
utorrentClass.remove(inputHash)
|
||||
if clientAgent == 'transmission' and TransmissionClass !="":
|
||||
if inputCategory in hpCategory: #don't delete actual files for hp category, just remove torrent.
|
||||
TransmissionClass.remove_torrent(inputID, False)
|
||||
else:
|
||||
TransmissionClass.remove_torrent(inputID, True)
|
||||
TransmissionClass.remove_torrent(inputID, True)
|
||||
if clientAgent == 'deluge' and delugeClient != "":
|
||||
delugeClient.core.remove_torrent(inputID, True)
|
||||
# we always want to resume seeding, for now manually find out what is wrong when extraction fails
|
||||
|
|
|
@ -2,7 +2,8 @@ Change_LOG / History
|
|||
|
||||
V9.3 XX/XX/2014
|
||||
|
||||
|
||||
Impacts Torrents
|
||||
Allow Headphones to remove torrents and data after processing.
|
||||
|
||||
V9.2 05/03/2014
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue