zmb3 / spotify

A Go wrapper for the Spotify Web API
Apache License 2.0
1.4k stars 293 forks source link

Added Album member to SimpleTrack struct #1

Closed roelrymenants closed 9 years ago

roelrymenants commented 9 years ago

Hi,

I started using your spotify library. Nice and rather complete!

Started using the CurrentUsersTracks function and noticed that the result didn't contain the album of the tracks, which is returned by the spotify web api. Simply adding the Album to the struct makes it available.

zmb3 commented 9 years ago

Thanks!

It looks like Album is not in the simplified track object (see here: https://developer.spotify.com/web-api/object-model/#track-object-simplified).

Instead, the album should be added to the FullTrack struct.

If you want to make this change I'm happy to accept the PR.

roelrymenants commented 9 years ago

Done