mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #553] create a *get_album_playlist_id* function #392
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#392
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 @spystrach on GitHub (Feb 25, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/553
Is your feature request related to a problem? Please describe.
Hello, for a personal project, i use a lot the get_album_browse_id function that map for an album, the AudioPlaylistId to the BrowseId.
But there is not a reciprocal function.
Describe the solution you'd like
I would need to use a new function named get_album_playlist_id that would map the BrowseId to the AudioPlaylistId.
Describe alternatives you've considered
I could run the
get_album(browse_id)['audioPlaylistId']to extract all the album info and keep only the playlist id, but i would like to keep things clean.Additional context

I already created this function that leverage the redirect from https://music.youtube.com/browse/browse_id.
I could do a pull-request.
@sigma67 commented on GitHub (Feb 25, 2024):
What's the issue with
get_album(browse_id)['audioPlaylistId']?Feel free to write your own
YTMusicclass inheriting fromYTMusic& add a wrapper around it, if you think it's too verbose.@spystrach commented on GitHub (Feb 25, 2024):
that's what i end up doing ! Initially my thought was to reduce api call but after diving into your code, it's the same.
thanks for your response and you can close this issue.