[GH-ISSUE #173] [REQUEST] class PlaylistId(SpotifyId): #28

Closed
opened 2026-02-27 08:11:30 +03:00 by kerem · 3 comments
Owner

Originally created by @sesseor on GitHub (Jan 2, 2023).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/173

Is your feature request related to a problem? Please describe.
i saw that AlbumId /ArtistId/ ShowId classes are implemented but not a playlist class

Describe the solution you'd like
i tried to add it myself and added all the needed functions but got stuck here librespot/proto/Metadata_pb2.py and did not know what to do
also get_metadata_4_playlist() would be a cool thing to get

Originally created by @sesseor on GitHub (Jan 2, 2023). Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/173 **Is your feature request related to a problem? Please describe.** i saw that `AlbumId` /`ArtistId`/ `ShowId` classes are implemented but not a playlist class **Describe the solution you'd like** i tried to add it myself and added all the needed functions but got stuck here `librespot/proto/Metadata_pb2.py` and did not know what to do also `get_metadata_4_playlist()` would be a cool thing to get
kerem 2026-02-27 08:11:30 +03:00
Author
Owner

@kokarare1212 commented on GitHub (Jan 3, 2023):

It can be obtained at ApiClient.get_player(_id: PlaylistId).

session = ~
playlist_id = PlaylistId.from_uri("spotify:playlist:*")
playlist = session.api().get_playlist(playlist_id)
<!-- gh-comment-id:1369310845 --> @kokarare1212 commented on GitHub (Jan 3, 2023): It can be obtained at `ApiClient.get_player(_id: PlaylistId)`. ``` session = ~ playlist_id = PlaylistId.from_uri("spotify:playlist:*") playlist = session.api().get_playlist(playlist_id) ```
Author
Owner

@sesseor commented on GitHub (Jan 3, 2023):

fantastic.. this works fine
what does session.api().get_playlist(playlist_id) return ? like the type ?
and what are those ? \000\000\000\007>\177\341\305\014\301\242\013\255\310u\337\253\224_\370/+_d

<!-- gh-comment-id:1369345338 --> @sesseor commented on GitHub (Jan 3, 2023): fantastic.. this works fine what does `session.api().get_playlist(playlist_id)` return ? like the type ? and what are those ? `\000\000\000\007>\177\341\305\014\301\242\013\255\310u\337\253\224_\370/+_d`
Author
Owner

@kokarare1212 commented on GitHub (Jan 3, 2023):

session.api().get_playlist(playlist_id) does return a protobuf data (SelectedListContent).
For more information, please see
https://github.com/kokarare1212/librespot-python/blob/main/proto/playlist4_external.proto#L168-L181

<!-- gh-comment-id:1369351898 --> @kokarare1212 commented on GitHub (Jan 3, 2023): `session.api().get_playlist(playlist_id)` does return a protobuf data (SelectedListContent). For more information, please see https://github.com/kokarare1212/librespot-python/blob/main/proto/playlist4_external.proto#L168-L181
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/librespot-python-kokarare1212#28
No description provided.