diff options
author | Vitiko <[email protected]> | 2023-06-13 02:51:36 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2023-06-13 02:51:36 -0400 |
commit | a82f52f84bdc1659f15f3d4131f5cc1f7a3ead6d (patch) | |
tree | 8c128e72a3734f789ce2f2d1f3b1eddd7fb0b851 | |
parent | ee1506ed54b5a610dca7ca47ff6a09f13773c84e (diff) | |
download | bazarr-a82f52f84bdc1659f15f3d4131f5cc1f7a3ead6d.tar.gz bazarr-a82f52f84bdc1659f15f3d4131f5cc1f7a3ead6d.zip |
no log: Subf2m provider: avoid iterating over unsupported languages
-rw-r--r-- | libs/subliminal_patch/providers/subf2m.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/subliminal_patch/providers/subf2m.py b/libs/subliminal_patch/providers/subf2m.py index 11a60f99b..2f400287d 100644 --- a/libs/subliminal_patch/providers/subf2m.py +++ b/libs/subliminal_patch/providers/subf2m.py @@ -377,6 +377,8 @@ class Subf2mProvider(Provider): logger.debug("No results") return [] + languages = set([lang for lang in languages if lang in self.languages]) + subs = [] for path in paths: must_break = False |