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:
clinton-hall 2014-04-29 11:33:59 +09:30
commit 0d3060ddf2

View file

@ -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