X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_youtube_chapters.py;h=e69c57377e617e2864a80e2e736bb72c87c4122e;hb=9ff6165a8199488e92e8a76962f37d944e14a738;hp=a5d05355f9dbb26563c2c70d342ddd79eb45bf6f;hpb=9cafc3fd8b54b9b91a145cddf9e4db0bd59e1b5f;p=youtube-dl
diff --git a/test/test_youtube_chapters.py b/test/test_youtube_chapters.py
index a5d05355f..e69c57377 100644
--- a/test/test_youtube_chapters.py
+++ b/test/test_youtube_chapters.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# coding: utf-8
from __future__ import unicode_literals
# Allow direct execution
@@ -253,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)