From b8784d71dd1bcc769cc630b1e4385409bf62fae5 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Wed, 8 Jan 2020 07:03:11 +1300 Subject: [PATCH] Fix Json returned from Sonarr and Lidarr (#1697) --- core/auto_process/music.py | 2 +- core/auto_process/tv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/auto_process/music.py b/core/auto_process/music.py index e72d9b8c..af3bb166 100644 --- a/core/auto_process/music.py +++ b/core/auto_process/music.py @@ -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: diff --git a/core/auto_process/tv.py b/core/auto_process/tv.py index 57fe2a1e..4c6edfac 100644 --- a/core/auto_process/tv.py +++ b/core/auto_process/tv.py @@ -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