Add the ability to not resume torrent on failure

This commit is contained in:
Hagai Cohen 2015-09-24 18:17:01 +03:00
commit 0d1e27c093
3 changed files with 7 additions and 2 deletions

View file

@ -223,7 +223,9 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
plex_update(inputCategory)
if result[0] != 0:
if clientAgent != 'manual':
if core.TORRENT_RESUME_ON_FAILURE:
logger.error("A problem was reported in the autoProcess* script. torrent won't resume seeding (settings)")
elif clientAgent != 'manual':
logger.error(
"A problem was reported in the autoProcess* script. If torrent was paused we will resume seeding")
core.resume_torrent(clientAgent, inputHash, inputID, inputName)