mirror of https://github.com/evilhero/mylar
FIX:(#1921) When using ComicRN & NZBget, post-processing would fail due to inability to properly parse return string
This commit is contained in:
parent
a48c8b5b57
commit
0fdb551365
|
@ -138,7 +138,7 @@ DOWNLOAD_APIKEY = None
|
||||||
APILOCK = False
|
APILOCK = False
|
||||||
CMTAGGER_PATH = None
|
CMTAGGER_PATH = None
|
||||||
STATIC_COMICRN_VERSION = "1.01"
|
STATIC_COMICRN_VERSION = "1.01"
|
||||||
STATIC_APC_VERSION = "2.01"
|
STATIC_APC_VERSION = "2.02"
|
||||||
SAB_PARAMS = None
|
SAB_PARAMS = None
|
||||||
COMICINFO = []
|
COMICINFO = []
|
||||||
SCHED = BackgroundScheduler({
|
SCHED = BackgroundScheduler({
|
||||||
|
|
|
@ -11,7 +11,7 @@ except ImportError:
|
||||||
print "requests to bypass this in the future (ie. pip install requests)"
|
print "requests to bypass this in the future (ie. pip install requests)"
|
||||||
use_requests = False
|
use_requests = False
|
||||||
|
|
||||||
apc_version = "2.01"
|
apc_version = "2.02"
|
||||||
|
|
||||||
def processEpisode(dirName, nzbName=None):
|
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."
|
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:
|
else:
|
||||||
print 'statuscode: %s' % pp.status_code
|
print 'statuscode: %s' % pp.status_code
|
||||||
result = pp.content
|
result = pp.content
|
||||||
print pp.content
|
print result
|
||||||
else:
|
else:
|
||||||
url += "?" + urllib.urlencode(params)
|
url += "?" + urllib.urlencode(params)
|
||||||
print "Opening URL:", url
|
print "Opening URL:", url
|
||||||
|
@ -93,7 +93,7 @@ def processIssue(dirName, nzbName=None, failed=False, comicrn_version=None):
|
||||||
for line in result:
|
for line in result:
|
||||||
print line
|
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
|
return 0
|
||||||
else:
|
else:
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in New Issue