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