From 0fdb551365d5512dcdafdff18106b23dfc2e7502 Mon Sep 17 00:00:00 2001 From: evilhero Date: Mon, 16 Apr 2018 13:50:09 -0400 Subject: [PATCH] FIX:(#1921) When using ComicRN & NZBget, post-processing would fail due to inability to properly parse return string --- mylar/__init__.py | 2 +- post-processing/autoProcessComics.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mylar/__init__.py b/mylar/__init__.py index 69f2237a..effafa89 100644 --- a/mylar/__init__.py +++ b/mylar/__init__.py @@ -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({ diff --git a/post-processing/autoProcessComics.py b/post-processing/autoProcessComics.py index 4017fdd6..286a4865 100644 --- a/post-processing/autoProcessComics.py +++ b/post-processing/autoProcessComics.py @@ -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