youtube-sr icon indicating copy to clipboard operation
youtube-sr copied to clipboard

Getting Null and SyntaxError in getPlaylist Method

Open MaitreGEEK opened this issue 2 years ago • 3 comments

Hey,

I was trying to implement playlists recognition in my program and found out that it always return me "null". So I checked the code and found that there's an error while parsing the data from the HTML pages: image image

Playlist used for this screenshot: https://youtube.com/playlist?list=PLpIYdjpi2QX4jU15ProfU8BsjXML-VFrZ&si=E7s6MwHI6aTo1qSF

And another one: image from: https://music.youtube.com/playlist?list=PLXftWo8BlN2lx5iHhkp-3Yg5aRRbe6Qme

Also, if you put these url in getPlaylist(url) it will return a 404 html page because it seems like the program is bugged and search for the page https://youtube.com/playlist?list=https://music.youtube.com/playlist?list=PLXftWo8BlN2lx5iHhkp-3Yg5aRRbe6Qme or https://youtube.com/playlist?list=https://youtube.com/playlist?list=PLpIYdjpi2QX4jU15ProfU8BsjXML-VFrZ&si=E7s6MwHI6aTo1qSF. It will work if you use the ID of the playlist, the HTML Page get seems to be the right one.

MaitreGEEK avatar Feb 15 '24 09:02 MaitreGEEK

Do you think you will fix this soon?

MaitreGEEK avatar Mar 07 '24 12:03 MaitreGEEK

Do you think you will fix this soon?

hi, I am unable to update this lib at the moment as I am really busy these days with a lot of other stuff but I am happy to review pull requests :)

twlite avatar Mar 07 '24 13:03 twlite

Okay, no problem. Well I don't think I have time to check your code to modify it

MaitreGEEK avatar Mar 07 '24 13:03 MaitreGEEK