aboutsummaryrefslogtreecommitdiffhomepage
path: root/custom_libs/subliminal_patch/providers/subdl.py
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-12-24 15:19:09 +0000
committerGitHub <[email protected]>2024-12-24 15:19:09 +0000
commit6ec304d13d5ed8a217f0f6d6ee98ecc98cac87af (patch)
treebb37288a8dba25f485c5b763098afb848a0a9669 /custom_libs/subliminal_patch/providers/subdl.py
parentd6b74c908353c5051e188565e01b686a7017c3e9 (diff)
parent2247c55bfa9fd38bf3fbe80330a5c37f4988ee6a (diff)
downloadbazarr-master.tar.gz
bazarr-master.zip
Merge development into masterHEADmaster
Diffstat (limited to 'custom_libs/subliminal_patch/providers/subdl.py')
-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),