rinukkusu / spotify-dart

A dart library for interfacing with the Spotify API.
BSD 3-Clause "New" or "Revised" License
207 stars 93 forks source link

Add Album field to TrackSimple #170

Open tikbox opened 1 year ago

tikbox commented 1 year ago

I would like to request an update for the new Spotify API. It appears that the TrackSimple object is currently missing the Album field.

Could you please add the Album field to the TrackSimple object? This addition would greatly enhance the functionality and completeness of the API.

Thank you for your attention to this matter.

Best regards,

hayribakici commented 1 year ago

The TrackSimple object cannot have an Album child object, because it would have a circular reference. While looking in the spotify documentation, it is stated where TrackSimple objects are required (e.g. in Album). I see however, that the recentlyPlayed endpoint does return an array of Track objects, which themselves contain an Album (and currently the PlayHistory dart object has an array of TrackSimple). Is that what you are referring to @tikbox ?

rinukkusu commented 1 year ago

Hmm, this also plays into #179 and maybe #172