Fix json load from Sonarr

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

View file

@ -343,7 +343,7 @@ def process(section, dir_name, input_name=None, failed=False, client_agent='manu
time.sleep(60) time.sleep(60)
elif section == 'NzbDrone': elif section == 'NzbDrone':
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)
started = True started = True