diff --git a/votify/interface/base.py b/votify/interface/base.py index f929b91..c73d68a 100644 --- a/votify/interface/base.py +++ b/votify/interface/base.py @@ -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, diff --git a/votify/interface/types.py b/votify/interface/types.py index 633f6cd..0068c28 100644 --- a/votify/interface/types.py +++ b/votify/interface/types.py @@ -41,6 +41,7 @@ class StreamInfoAv: @dataclass class PlaylistTags: + id: str = None artist: str = None title: str = None track: int = None