From 64ca70d8a5658320b07702b3a0dcfecb9e37af6b Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Wed, 25 Feb 2026 21:05:07 -0300 Subject: [PATCH] Add playlist id to PlaylistTags --- votify/interface/base.py | 1 + votify/interface/types.py | 1 + 2 files changed, 2 insertions(+) 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