mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Add the ability to not resume torrent on failure
This commit is contained in:
parent
ab4d02a240
commit
0d1e27c093
3 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue