summaryrefslogtreecommitdiffhomepage
path: root/custom_libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-10-23 18:35:09 -0400
committermorpheus65535 <[email protected]>2024-10-23 18:35:09 -0400
commita186e64893fd71d986ef922d9d90cf0b9435ae41 (patch)
treeceba17b0bfad8333916ae0e632cea4a81d79817d /custom_libs
parentb34a0c19a21a2caac3fa8cf29cdcfa96717b54fc (diff)
downloadbazarr-a186e64893fd71d986ef922d9d90cf0b9435ae41.tar.gz
bazarr-a186e64893fd71d986ef922d9d90cf0b9435ae41.zip
Fixed subdl to not ignore movies subtitles by erroneously check for season packs. #2725
Diffstat (limited to 'custom_libs')
-rw-r--r--custom_libs/subliminal_patch/providers/subdl.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/custom_libs/subliminal_patch/providers/subdl.py b/custom_libs/subliminal_patch/providers/subdl.py
index 102125eae..663e18399 100644
--- a/custom_libs/subliminal_patch/providers/subdl.py
+++ b/custom_libs/subliminal_patch/providers/subdl.py
@@ -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),