emresenyuva / youtube-music-api

Node.js Unoffical Youtube Music API
MIT License
120 stars 47 forks source link

PLEASE+++++++++ help #13

Closed Intronet closed 3 years ago

Intronet commented 3 years ago

Can you publish an example showing how to get the continuations for videos and playlists

zS1L3NT commented 3 years ago

I agree, the source code shows no implementation of continuation for videos and playlists. This library is very useful but it needs lots of updating and typescript typings

Intronet commented 3 years ago

OK got the continuations working index.js line 219 : if (contentLimit > result.content.length) { replace with if (result.trackCount > result.content.length) {

index.js line 230 : if (contentLimit > result.content.length && (!Array.isArray(result.continuation) && result.continuation instanceof Object)) { replace with if (result.trackCount > result.content.length && result.continuation.length) {

index.js line 231 : getContinuations(result.continuation) replace with getContinuations(result.continuation[0])

zS1L3NT commented 3 years ago

You're asking us to edit the source code?

Intronet commented 3 years ago

You're asking us to edit the source code?

Yes, and it will return all videos in a playlist