mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-03 05:25:28 +00:00
Fixed provider pool update on automatic search. #2379
This commit is contained in:
parent
90583354bf
commit
88c267f848
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue