X-Git-Url: https://git.rapsys.eu/youtubedl/blobdiff_plain/d9d7cd0e85dc712461d9185db9df9d6c900a573b..0626de37fa3331c654d4affae363132a0d766ffb:/test/test_youtube_chapters.py
diff --git a/test/test_youtube_chapters.py b/test/test_youtube_chapters.py
index cb12f83..e69c573 100644
--- a/test/test_youtube_chapters.py
+++ b/test/test_youtube_chapters.py
@@ -254,13 +254,20 @@ class TestYoutubeChapters(unittest.TestCase):
'title': '3 - Ðз ÑеÑпов лÑнÑ...[Iz serpov luny]',
}]
),
+ (
+ # https://www.youtube.com/watch?v=xZW70zEasOk
+ # time point more than duration
+ '''â LCS Spring finals: Saturday and Sunday from 13:30 outside the venue!
â PAX East: Fri, Sat & Sun - more info in tomorrows video on the main channel!''',
+ 283,
+ []
+ ),
]
def test_youtube_chapters(self):
for description, duration, expected_chapters in self._TEST_CASES:
ie = YoutubeIE()
expect_value(
- self, ie._extract_chapters(description, duration),
+ self, ie._extract_chapters_from_description(description, duration),
expected_chapters, None)