[GH-ISSUE #553] create a *get_album_playlist_id* function #392

Closed
opened 2026-02-27 23:00:33 +03:00 by kerem · 2 comments
Owner

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.
test_success

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. ![test_success](https://github.com/sigma67/ytmusicapi/assets/100165613/043bf8bf-8254-468b-8d49-49eae631c94e)
kerem closed this issue 2026-02-27 23:00:34 +03:00
Author
Owner

@sigma67 commented on GitHub (Feb 25, 2024):

What's the issue with get_album(browse_id)['audioPlaylistId'] ?

Feel free to write your own YTMusic class inheriting from YTMusic & add a wrapper around it, if you think it's too verbose.

<!-- gh-comment-id:1963046318 --> @sigma67 commented on GitHub (Feb 25, 2024): What's the issue with `get_album(browse_id)['audioPlaylistId']` ? Feel free to write your own `YTMusic` class inheriting from `YTMusic` & add a wrapper around it, if you think it's too verbose.
Author
Owner

@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.

<!-- gh-comment-id:1963052987 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#392
No description provided.