bugfix: handle missing items in Playlist and PlaylistTracks#767
bugfix: handle missing items in Playlist and PlaylistTracks#767Belov-Dev wants to merge 1 commit into
Conversation
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
joostlek
left a comment
There was a problem hiding this comment.
I am not sure when this happens. Can you elaborate what kind of playlists have this and can we add tests for this?
|
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
Problem:
Spotify API returns simplified playlist objects (e.g. in user playlist lists) where tracks contains only href and total without items.
This causes KeyError/deserialization failure:
Field "items" of type PlaylistTracks is missing in Playlist instance.
Fix: