From d95e4e56c8569bc41a085336a797044ca2c4a1d9 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Sun, 8 Dec 2019 12:31:46 +1300 Subject: [PATCH] remove redundant json.loads #1671 (#1681) --- core/auto_process/movies.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/auto_process/movies.py b/core/auto_process/movies.py index e7439aa0..6535cddd 100644 --- a/core/auto_process/movies.py +++ b/core/auto_process/movies.py @@ -252,8 +252,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual', elif section == 'Radarr': logger.postprocess('Radarr response: {0}'.format(result['state'])) try: - res = json.loads(r.content) - scan_id = int(res['id']) + scan_id = int(result['id']) logger.debug('Scan started with id: {0}'.format(scan_id), section) except Exception as e: logger.warning('No scan id was returned due to: {0}'.format(e), section)