diff --git a/mylar/__init__.py b/mylar/__init__.py index 4852401a..fc4cb524 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.02" +STATIC_APC_VERSION = "2.03" SAB_PARAMS = None COMICINFO = [] SCHED = BackgroundScheduler({ diff --git a/post-processing/autoProcessComics.py b/post-processing/autoProcessComics.py index 286a4865..1003ef47 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.02" +apc_version = "2.03" 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." @@ -93,7 +93,13 @@ 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.split('\n')): - return 0 + if type(result) == 'list': + if any("Post Processing SUCCESSFUL" in s for s in result): + return 0 + else: + return 1 else: - return 1 + if any("Post Processing SUCCESSFUL" in s for s in result.split('\n')): + return 0 + else: + return 1