summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVitiko <[email protected]>2022-03-19 02:02:05 -0400
committerVitiko <[email protected]>2022-03-19 02:02:05 -0400
commit8c4e83c18d56c96a036bbe8aa1cd268448099766 (patch)
treedd10334a186124763d2c5089532733957fef03ac
parentaaf4b7c6731c35252a7d89cf8cac64eb54d0b064 (diff)
downloadbazarr-8c4e83c18d56c96a036bbe8aa1cd268448099766.tar.gz
bazarr-8c4e83c18d56c96a036bbe8aa1cd268448099766.zip
Fix subliminal core: wrong providers being restartedv1.0.4-beta.10
-rw-r--r--libs/subliminal_patch/core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py
index 3ecd9d1b6..db98406c9 100644
--- a/libs/subliminal_patch/core.py
+++ b/libs/subliminal_patch/core.py
@@ -131,6 +131,10 @@ class SZProviderPool(ProviderPool):
# Restart providers with new configs
for key, val in provider_configs.items():
+ # Don't restart providers that are not enabled
+ if key not in self.providers:
+ continue
+
# key: provider's name; val: config dict
old_val = self.provider_configs.get(key)