1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-23 22:41:34 +00:00

Fixed subdl to not ignore movies subtitles by erroneously check for season packs. #2725

This commit is contained in:
morpheus65535 2024-10-23 18:35:09 -04:00
parent b34a0c19a2
commit a186e64893

View file

@ -188,7 +188,11 @@ class SubdlProvider(ProviderRetryMixin, Provider):
if len(result['subtitles']):
for item in result['subtitles']:
if item.get('episode_from', False) == item.get('episode_end', False): # ignore season packs
if (isinstance(self.video, Episode) and
item.get('episode_from', False) != item.get('episode_end', False)):
# ignore season packs
continue
else:
subtitle = SubdlSubtitle(
language=Language.fromsubdl(item['language']),
forced=self._is_forced(item),