1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-22 07:42:24 +00:00

FIX:(#1941)(#1921) Possible fix for inability to correctly parse response from post-processor when using ComicRN

This commit is contained in:
evilhero 2018-05-02 13:38:51 -04:00
parent 93eb1a8615
commit 8d626ec361
2 changed files with 11 additions and 5 deletions

View file

@ -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({

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.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