summaryrefslogtreecommitdiffhomepage
path: root/tests/subliminal_patch
diff options
context:
space:
mode:
authorVitiko <[email protected]>2022-11-09 03:38:50 -0400
committerVitiko <[email protected]>2022-11-09 03:38:50 -0400
commit69e4a9c52657083bdc5c892ce9d0ecb930ef2486 (patch)
tree41d9e98465b7fa87558b96eeb86376cfcbd77aab /tests/subliminal_patch
parent0c92a1686af29b041abb1e43dc99e8b807dc5b6d (diff)
downloadbazarr-69e4a9c52657083bdc5c892ce9d0ecb930ef2486.tar.gz
bazarr-69e4a9c52657083bdc5c892ce9d0ecb930ef2486.zip
Subdivx Provider: improve series matching
Diffstat (limited to 'tests/subliminal_patch')
-rw-r--r--tests/subliminal_patch/test_subdivx.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/subliminal_patch/test_subdivx.py b/tests/subliminal_patch/test_subdivx.py
index 26afdedde..15b4fce53 100644
--- a/tests/subliminal_patch/test_subdivx.py
+++ b/tests/subliminal_patch/test_subdivx.py
@@ -44,6 +44,19 @@ def test_list_subtitles_episode(episodes, episode_key, expected):
assert len(subtitles) >= expected
+def test_list_subtitles_episode_with_year(episodes):
+ item = list(episodes.values())[0]
+
+ item.series = "The Twilight Zone"
+ item.name = "The Twilight Zone"
+ item.year = 1959
+ item.season = 1
+ item.episode = 1
+
+ with SubdivxSubtitlesProvider() as provider:
+ assert provider.list_subtitles(item, {Language.fromietf("es")})
+
+
def test_list_subtitles_castillian_spanish(episodes):
item = episodes["better_call_saul_s06e04"]
with SubdivxSubtitlesProvider() as provider: