FIX:(#1921) When using ComicRN & NZBget, post-processing would fail due to inability to properly parse return string

This commit is contained in:
evilhero 2018-04-16 13:50:09 -04:00
parent a48c8b5b57
commit 0fdb551365
2 changed files with 4 additions and 4 deletions

View File

@ -138,7 +138,7 @@ DOWNLOAD_APIKEY = None
APILOCK = False
CMTAGGER_PATH = None
STATIC_COMICRN_VERSION = "1.01"
STATIC_APC_VERSION = "2.01"
STATIC_APC_VERSION = "2.02"
SAB_PARAMS = None
COMICINFO = []
SCHED = BackgroundScheduler({

View File

@ -11,7 +11,7 @@ except ImportError:
print "requests to bypass this in the future (ie. pip install requests)"
use_requests = False
apc_version = "2.01"
apc_version = "2.02"
def processEpisode(dirName, nzbName=None):
print "Your ComicRN.py script is outdated. I'll force this through, but Failed Download Handling and possible enhancements/fixes will not work and could cause errors."
@ -79,7 +79,7 @@ def processIssue(dirName, nzbName=None, failed=False, comicrn_version=None):
else:
print 'statuscode: %s' % pp.status_code
result = pp.content
print pp.content
print result
else:
url += "?" + urllib.urlencode(params)
print "Opening URL:", url
@ -93,7 +93,7 @@ def processIssue(dirName, nzbName=None, failed=False, comicrn_version=None):
for line in result:
print line
if any("Post Processing SUCCESSFUL" in s for s in result):
if any("Post Processing SUCCESSFUL" in s for s in result.split('\n')):
return 0
else:
return 1