1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-07-02 12:02:52 -05:00

[youtube] Extract chapters from JSON (closes #24819)

This commit is contained in:
Sergey M․
2020-06-06 04:16:31 +07:00
parent 562de77f41
commit 84213ea8d4
2 changed files with 62 additions and 3 deletions

View File

@ -267,7 +267,7 @@ class TestYoutubeChapters(unittest.TestCase):
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)