bugfix
This commit is contained in:
parent
cbaa67d90f
commit
4d4e5bfb51
|
|
@ -68,8 +68,8 @@ class Playlist:
|
||||||
self.name = playlist_info.get("name")
|
self.name = playlist_info.get("name")
|
||||||
self.selected_track = playlist_info.get("selectedTrack")
|
self.selected_track = playlist_info.get("selectedTrack")
|
||||||
|
|
||||||
self.thumbnail = thumbnail
|
self._thumbnail = thumbnail
|
||||||
self.uri = uri
|
self._uri = uri
|
||||||
|
|
||||||
if self.spotify:
|
if self.spotify:
|
||||||
self.tracks = tracks
|
self.tracks = tracks
|
||||||
|
|
@ -90,9 +90,9 @@ class Playlist:
|
||||||
@property
|
@property
|
||||||
def uri(self) -> Optional[str]:
|
def uri(self) -> Optional[str]:
|
||||||
"""Spotify album/playlist URI, or None if not a Spotify object."""
|
"""Spotify album/playlist URI, or None if not a Spotify object."""
|
||||||
return self.uri
|
return self._uri
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def thumbnail(self) -> Optional[str]:
|
def thumbnail(self) -> Optional[str]:
|
||||||
"""Spotify album/playlist thumbnail, or None if not a Spotify object."""
|
"""Spotify album/playlist thumbnail, or None if not a Spotify object."""
|
||||||
return self.thumbnail
|
return self._thumbnail
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue