Radarr api-v3 changes (#1834)

#1831
This commit is contained in:
Clinton Hall 2021-06-09 07:27:58 +12:00 committed by GitHub
commit 213f1f6f10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ def command_complete(url, params, headers, section):
return None return None
else: else:
try: try:
return r.json()['state'] return r.json()['status']
except (ValueError, KeyError): except (ValueError, KeyError):
# ValueError catches simplejson's JSONDecodeError and json's ValueError # ValueError catches simplejson's JSONDecodeError and json's ValueError
logger.error('{0} did not return expected json data.'.format(section), section) logger.error('{0} did not return expected json data.'.format(section), section)