diff options
author | morpheus65535 <[email protected]> | 2024-02-09 08:17:33 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-02-09 08:17:33 -0500 |
commit | 88c267f8480bedd6319db2620a74c13f5fe2595b (patch) | |
tree | 5d6627c02c7ede677e122e1875143559f7f5f6bb | |
parent | 90583354bf06532e7ae9881cfdfb52cba75424bf (diff) | |
download | bazarr-88c267f8480bedd6319db2620a74c13f5fe2595b.tar.gz bazarr-88c267f8480bedd6319db2620a74c13f5fe2595b.zip |
Fixed provider pool update on automatic search. #2379v1.4.2-beta.2custom_lang_pt
-rw-r--r-- | bazarr/subtitles/pool.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |