TimeForANinja / node-ytpl

Anonymous YouTube playlist resolver.
MIT License
202 stars 48 forks source link

Chapters support #130

Closed Hydro001 closed 2 years ago

Hydro001 commented 2 years ago

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.

TimeForANinja commented 2 years ago

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

Hydro001 commented 2 years ago

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.

TimeForANinja commented 2 years ago

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

Hydro001 commented 2 years ago

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