mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
parent
8188455e13
commit
00ca156564
5 changed files with 28 additions and 9 deletions
|
@ -180,7 +180,10 @@ class autoProcessMovie:
|
|||
return 1 # failure
|
||||
|
||||
result = r.json()
|
||||
if result['success']:
|
||||
if not r.status_code == requests.codes.ok:
|
||||
logger.error("Server returned status %s" % (str(r.status_code)), section)
|
||||
return 1
|
||||
elif result['success']:
|
||||
logger.postprocess("SUCCESS: Finished %s scan for folder %s" % (method, dirName), section)
|
||||
else:
|
||||
logger.error("FAILED: %s scan was unable to finish for folder %s. exiting!" % (method, dirName),
|
||||
|
@ -233,7 +236,10 @@ class autoProcessMovie:
|
|||
return 1 # failure
|
||||
|
||||
result = r.json()
|
||||
if result['success']:
|
||||
if not r.status_code == requests.codes.ok:
|
||||
logger.error("Server returned status %s" % (str(r.status_code)), section)
|
||||
return 1
|
||||
elif result['success']:
|
||||
logger.postprocess("SUCCESS: Snatched the next highest release ...", section)
|
||||
return 0
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue