Skip to content

Videos with chapters? #625

@Protected

Description

@Protected

Youtube videos can now have chapters. For example:

https://www.youtube.com/watch?v=BvyQ70PVI4s

youtube-dl -j gives me information on said chapters:

{
    ...
    "chapters": [
        {
            "start_time": 0,
            "end_time": 46,
            "title": "Are you a Creator-focused YouTuber?"
        },
        {
            "start_time": 46,
            "end_time": 83,
            "title": "Recent Subs to 100% Launch"
        },
        {
            "start_time": 83,
            "end_time": 105,
            "title": "Sneak Peeks Coming Soon!"
        },
        {
            "start_time": 105,
            "end_time": 139,
            "title": "Video Chapters Experiment (iOs coming soon!)"
        },
        {
            "start_time": 139,
            "end_time": 203,
            "title": "Channel Memberships Highlighted Comments Experiment"
        },
        {
            "start_time": 203,
            "end_time": 223,
            "title": "Monetization of COVID-19 Content Launch"
        },
        {
            "start_time": 223,
            "end_time": 241,
            "title": "Giving Creator Expansion"
        },
        {
            "start_time": 241,
            "end_time": 322,
            "title": "Music Policy Directory Deprecation"
        },
        {
            "start_time": 322,
            "end_time": 397,
            "title": "Trivia Winner"
        },
        {
            "start_time": 397,
            "end_time": 471,
            "title": "Trivia"
        }
    ]
    ...
}

But as of now ytdl doesn't appear to do so. May I request this as an improvement for getInfo?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions