mirror of
https://github.com/glomatico/votify.git
synced 2026-09-29 20:42:32 +02:00
Add playlist id to PlaylistTags
This commit is contained in:
@@ -128,6 +128,7 @@ class SpotifyBaseInterface:
|
||||
|
||||
def get_playlist_tags(self, playlist_data: dict, track: int) -> PlaylistTags:
|
||||
return PlaylistTags(
|
||||
id=playlist_data["uri"].split(":")[-1],
|
||||
artist=playlist_data["ownerV2"]["data"]["name"],
|
||||
title=playlist_data["name"],
|
||||
track=track,
|
||||
|
||||
@@ -41,6 +41,7 @@ class StreamInfoAv:
|
||||
|
||||
@dataclass
|
||||
class PlaylistTags:
|
||||
id: str = None
|
||||
artist: str = None
|
||||
title: str = None
|
||||
track: int = None
|
||||
|
||||
Reference in New Issue
Block a user