Skip to content

Commit b9313ca

Browse files
authored
Merge pull request #303 from Nielssg/fix/recently-played-track-type
Fixed #302: PlayHistory should contain a Track object rather than a SimpleTrack, due to a change in the Spotify API
2 parents f691e61 + c1b7e14 commit b9313ca

File tree

1 file changed

+1
-1
lines changed
  • src/commonMain/kotlin/com.adamratzman.spotify/models

1 file changed

+1
-1
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/models/Player.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public data class SpotifyContext(
3737
*/
3838
@Serializable
3939
public data class PlayHistory(
40-
val track: SimpleTrack,
40+
val track: Track,
4141
@SerialName("played_at") val playedAt: String,
4242
val context: SpotifyContext? = null
4343
)

0 commit comments

Comments
 (0)