add an option to disable resuming of torrents. #892

Thanks @VinceVal
This commit is contained in:
clinton-hall 2015-12-05 10:05:08 +10:30
commit c77ce99ed7
3 changed files with 6 additions and 1 deletions

View file

@ -753,6 +753,8 @@ def pause_torrent(clientAgent, inputHash, inputID, inputName):
logger.warning("Failed to stop torrent %s in %s" % (inputName, clientAgent))
def resume_torrent(clientAgent, inputHash, inputID, inputName):
if not core.TORRENT_RESUME == 1:
return
logger.debug("Starting torrent %s in %s" % (inputName, clientAgent))
try:
if clientAgent == 'utorrent' and core.TORRENT_CLASS != "":