mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
fix for media get when no error and no media returend. fixes #345
if movie not in CPS, result = {"media": null, "success": false}.
This commit is contained in:
parent
409a88359e
commit
0d3060ddf2
1 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,10 @@ class autoProcessMovie:
|
|||
|
||||
result = r.json()
|
||||
if not result['success']:
|
||||
logger.error(str(result['error']))
|
||||
if 'error' in result:
|
||||
logger.error(str(result['error']))
|
||||
else:
|
||||
logger.error("no media found for id %s", params['id'])
|
||||
return results
|
||||
|
||||
# Gather release info and return it back, no need to narrow results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue