mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #470] get_album_browse_id() not working for some URLs #351
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bharat-nair on GitHub (Nov 9, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/470
Describe the bug
While using
get_album_browse_id(), some playlist URLs do not give anybrowse_idTo Reproduce
Steps to reproduce the behavior:
YTMusic().get_album_browse_id("OLAK5uy_nbMYyrfeg5ZgknoOsOGBL268hGxtcbnDM")will give an empty string.Additional context
Upon checking the page source for this particular playlist, (https://music.youtube.com/playlist?list=OLAK5uy_nbMYyrfeg5ZgknoOsOGBL268hGxtcbnDM) the
browseIdseems to be there but in this string unescaped form:...x22:\x7b\x22browseId\x22:\x22MPREb_scJdtUCpPE2\x22,\x22b...@bharat-nair commented on GitHub (Nov 9, 2023):
Going through the implementation, (L344) perhaps another regex can be added like:
re.findall(r"\\x22MPRE.+?\\x22", response.text)@sigma67 commented on GitHub (Nov 9, 2023):
Some unicode shenanigans going on, will fix in a moment