TimeForANinja/node-ytpl

Chapters support

Hydro001 opened this issue · 4 comments

Hi, would it be possible to add chapters support for ytpl ?
If there isn't any chapters, just return an empty array for exemple.

Have a nice day.

as far as i know chapters are a video feature and not displayed in playlists - that would mean it's not feasible

Oh, does that mean that i have to do something like an ytdl.get_basic_info to know if the videos contains any ?
To be honest i already do it and it works but i'm scared of being rate limited by Youtube as i can't catch the error if it happens.

Yep, as far as i know you'd have to fetch each individual video
There are a few ways you can stretch ratelimits - check the ytdl-core readme for more on that

Thanks for the help, i will look at what you said, have a nice day.