Fix Json returned from Sonarr and Lidarr (#1697)

This commit is contained in:
Clinton Hall 2020-01-08 07:03:11 +13:00 committed by GitHub
commit b8784d71dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
)
try:
res = json.loads(r.content)
res = r.json()
scan_id = int(res['id'])
logger.debug('Scan started with id: {0}'.format(scan_id), section)
except Exception as e:

View file

@ -343,7 +343,7 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
time.sleep(60)
elif section == 'NzbDrone':
try:
res = json.loads(r.content)
res = r.json()
scan_id = int(res['id'])
logger.debug('Scan started with id: {0}'.format(scan_id), section)
started = True