mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
parent
8188455e13
commit
00ca156564
5 changed files with 28 additions and 9 deletions
|
@ -55,7 +55,10 @@ class autoProcessGames:
|
|||
result = r.json()
|
||||
logger.postprocess("%s" % (result),section)
|
||||
|
||||
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: Status for %s has been set to %s in Gamez" % (gamezID, downloadStatus),section)
|
||||
return 0 # Success
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue