valerebron / usetube

search & get datas from youtube no google account needed
GNU General Public License v3.0
50 stars 18 forks source link

Suggestion: Function to get all songs from a playlist #3

Closed Pixel1011 closed 3 years ago

Pixel1011 commented 4 years ago

If given a playlist URL to a specific function getPlaylist(url) then return all the videos which are in the playlist in an array

valerebron commented 4 years ago

That's a good Idea ! check the code and pull request a getPlaylist(url) function :) For now I don't have time to write this function but I can help you.

cheers, Valère

valerebron commented 3 years ago

Thats finaly it. UseTube v1.3.0 contains a getPlaylistVideos() function !

you can try it like this :

usetube.getPlaylistVideos('PLKuN-WEIzl_pwo3US7XyZJe1oVCD7NLwF').then(videos => { console.log(videos) })

Go check the readme for more details.

cheers