mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
parent
1d3f8ac4d6
commit
a2e38f0e39
1 changed files with 9 additions and 2 deletions
|
@ -29,9 +29,16 @@ class autoProcessMovie:
|
|||
r = requests.get(url, params=params, verify=False)
|
||||
except requests.ConnectionError:
|
||||
logger.error("Unable to open URL %s" % url)
|
||||
return
|
||||
return results
|
||||
|
||||
try:
|
||||
result = r.json()
|
||||
except:
|
||||
logger.error("CouchPotato returned the following non-json data")
|
||||
for line in r.iter_lines():
|
||||
logger.error("%s" %(line))
|
||||
return results
|
||||
|
||||
result = r.json()
|
||||
if not result['success']:
|
||||
if 'error' in result:
|
||||
logger.error(str(result['error']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue