From cbc2090b0b948d887759d7ed5ca18b824be5f89d Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Thu, 29 Feb 2024 07:01:23 +1300 Subject: [PATCH] always return imdbid and dirname --- core/utils/identification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/utils/identification.py b/core/utils/identification.py index 5e942d08..c8001bc3 100644 --- a/core/utils/identification.py +++ b/core/utils/identification.py @@ -64,7 +64,7 @@ def find_imdbid(dir_name, input_name, omdb_api_key): if not omdb_api_key: logger.info('Unable to determine imdbID: No api key provided for omdbapi.com.') - return + return imdbid, dir_name logger.debug('Opening URL: {0}'.format(url)) @@ -73,7 +73,7 @@ def find_imdbid(dir_name, input_name, omdb_api_key): verify=False, timeout=(60, 300)) except requests.ConnectionError: logger.error('Unable to open URL {0}'.format(url)) - return + return imdbid, dir_name try: results = r.json()