From 88c267f8480bedd6319db2620a74c13f5fe2595b Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Fri, 9 Feb 2024 08:17:33 -0500 Subject: [PATCH] Fixed provider pool update on automatic search. #2379 --- bazarr/subtitles/pool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bazarr/subtitles/pool.py b/bazarr/subtitles/pool.py index c70e8f98c..a9908ea05 100644 --- a/bazarr/subtitles/pool.py +++ b/bazarr/subtitles/pool.py @@ -82,8 +82,10 @@ def update_pools(f): args_spec = getfullargspec(f).args try: + profile_id = kwargs["profile_id"] + except KeyError: profile_id = args[args_spec.index("profile_id")] - except (IndexError, ValueError): + except (ValueError, IndexError): profile_id = None updated = _update_pool(args[args_spec.index("media_type")], profile_id)