Fixes issue with TorrentNoLink returning incorrect value.

This commit is contained in:
echel0n 2014-04-21 11:25:24 -07:00
commit dea4c5d32a

View file

@ -37,7 +37,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
"We could not find a section with containing a download category labeled %s in your autoProcessMedia.cfg, Exiting!" % inputCategory)
return -1
Torrent_NoLink = int(nzbtomedia.CFG[section][inputCategory]["Torrent_NoLink"])
Torrent_NoLink = int(nzbtomedia.CFG[section][inputCategory]["Torrent_NoLink"]) or 0
if clientAgent != 'manual':
pause_torrent(clientAgent, inputHash, inputID, inputName)