From 06a43de5e257e4d5af857306c6a99c50b2a0356f Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Tue, 27 Feb 2024 20:33:26 +1300 Subject: [PATCH] Fix Radarr result handling --- core/auto_process/movies.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/auto_process/movies.py b/core/auto_process/movies.py index 87c50e16..a539405d 100644 --- a/core/auto_process/movies.py +++ b/core/auto_process/movies.py @@ -260,7 +260,10 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual', ) elif section == 'Radarr': try: - scan_id = int(result['id']) + if isinstance(result, list): + scan_id = int(result[0]['id']) + else: + 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)