diff options
author | Vitiko <[email protected]> | 2023-05-09 17:08:22 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2023-05-09 17:08:22 -0400 |
commit | 5f9418b1f3eae5b1acb5f8c4ecbd835726c6f63f (patch) | |
tree | 4e57580bc12aa2139c9d233962494311834de550 /tests/subliminal_patch | |
parent | 98c7364ce0d8f65e4cdd7223df0d00ccd916c8d4 (diff) | |
download | bazarr-5f9418b1f3eae5b1acb5f8c4ecbd835726c6f63f.tar.gz bazarr-5f9418b1f3eae5b1acb5f8c4ecbd835726c6f63f.zip |
Subdivx Provider: improve series matching
Diffstat (limited to 'tests/subliminal_patch')
-rw-r--r-- | tests/subliminal_patch/test_subdivx.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/subliminal_patch/test_subdivx.py b/tests/subliminal_patch/test_subdivx.py index 96342075c..33f938766 100644 --- a/tests/subliminal_patch/test_subdivx.py +++ b/tests/subliminal_patch/test_subdivx.py @@ -74,6 +74,19 @@ def test_list_subtitles_episode_with_title_only_fallback(episodes): subtitles = provider.list_subtitles(item, {Language("spa", "MX")}) assert len(subtitles) > 2 +def test_list_subtitles_episode_with_episode_title_fallback(episodes): + item = list(episodes.values())[0] + item.series = "30 for 30" + item.title = "The Two Escobars" + item.season = 1 + item.episode = 16 + + with SubdivxSubtitlesProvider() as provider: + sub = provider.list_subtitles(item, {Language("spa", "MX")})[0] + assert sub.get_matches(item) + provider.download_subtitle(sub) + assert sub.is_valid() + def test_download_subtitle(movies): subtitle = SubdivxSubtitle( |