From a82f52f84bdc1659f15f3d4131f5cc1f7a3ead6d Mon Sep 17 00:00:00 2001 From: Vitiko Date: Tue, 13 Jun 2023 02:51:36 -0400 Subject: no log: Subf2m provider: avoid iterating over unsupported languages --- libs/subliminal_patch/providers/subf2m.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs') 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 -- cgit v1.2.3