mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -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)
|
r = requests.get(url, params=params, verify=False)
|
||||||
except requests.ConnectionError:
|
except requests.ConnectionError:
|
||||||
logger.error("Unable to open URL %s" % url)
|
logger.error("Unable to open URL %s" % url)
|
||||||
return
|
return results
|
||||||
|
|
||||||
|
try:
|
||||||
result = r.json()
|
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
|
||||||
|
|
||||||
if not result['success']:
|
if not result['success']:
|
||||||
if 'error' in result:
|
if 'error' in result:
|
||||||
logger.error(str(result['error']))
|
logger.error(str(result['error']))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue