Replies: 2 comments 1 reply
-
@dargmuesli Just once a friendly reminder as I see that was replied to in another thread, just to make sure this one wasn't overlooked :D |
Beta Was this translation helpful? Give feedback.
-
I'm a bit late, but I hope I can still help since I submitted the original PR. The old way assumed that the queue only contains tracks, which is not the case; you can also queue up podcasts. So, I changed it to IPlaylistItem, this Java wrapper's version of abstractly talking about a track or podcast. The whole secret is to simply check the ModelObjectType and then cast it to the appropriate class. For your original example, it could be done like this:
Yes, it isn't as pretty as before, but you can thank Spotify for being so confusing about mixing tracks with podcasts in the first place. |
Beta Was this translation helpful? Give feedback.
-
Hi, i just updated to new v8 and saw this PR
#329
Before that, it was possible to get more information, like the artists using
track.getArtists().getName());
for example.Did I miss something, or is it now required to fetch this information using a GetTrack call using the track id?
Beta Was this translation helpful? Give feedback.
All reactions