fix json load from Lidarr

This commit is contained in:
Clinton Hall 2020-01-07 20:15:39 +13:00 committed by GitHub
commit 758df87bd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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