summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorVitiko <[email protected]>2022-10-19 01:17:54 -0400
committerVitiko <[email protected]>2022-10-19 01:17:54 -0400
commit71fe2b7a1ddc832ac903bdfcdc8c4e80e84e32db (patch)
tree80fcd79efb8de3b75f5b24ba691c3e83ad0d3ff4 /tests
parentd7c8188f946ac671fa95124df89dca01bc31ed62 (diff)
downloadbazarr-71fe2b7a1ddc832ac903bdfcdc8c4e80e84e32db.tar.gz
bazarr-71fe2b7a1ddc832ac903bdfcdc8c4e80e84e32db.zip
Subdivx Provider: improve episode queriesv1.1.3-beta.1
Diffstat (limited to 'tests')
-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 ae9676aee..bc932d494 100644
--- a/tests/subliminal_patch/test_subdivx.py
+++ b/tests/subliminal_patch/test_subdivx.py
@@ -52,6 +52,19 @@ def test_list_subtitles_castillian_spanish(episodes):
assert provider.list_subtitles(item, {Language.fromietf("es")})
+def test_list_subtitles_episode_with_year(episodes):
+ item = list(episodes.values())[0]
+ item.series = "The Bear"
+ item.name = "The Bear"
+ item.season = 1
+ item.episode = 1
+ item.year = 2022
+
+ with SubdivxSubtitlesProvider() as provider:
+ subtitles = provider.list_subtitles(item, {Language("spa", "MX")})
+ assert len(subtitles) > 2
+
+
def test_download_subtitle(movies):
subtitle = SubdivxSubtitle(
Language("spa", "MX"),