We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07a3353 commit fafad38Copy full SHA for fafad38
1 file changed
tidalapi/session.py
@@ -361,7 +361,7 @@ def parse_v2_mix(self, obj: JsonObj) -> mix.Mix:
361
def parse_playlist(self, obj: JsonObj) -> playlist.Playlist:
362
"""Parse a playlist from the given response."""
363
# Note: When parsing playlists from v2 response, "data" field must be parsed
364
- return self.playlist().parse(obj["data"])
+ return self.playlist().parse(obj.get("data", obj))
365
366
def parse_folder(self, obj: JsonObj) -> playlist.Folder:
367
"""Parse an album from the given response."""
0 commit comments