zmb3 / spotify

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

GetPlaylistTracksOpt should respect Country in Options object #112

Closed williamtdr closed 4 years ago

williamtdr commented 4 years ago

This adds support for the market parameter in the playlist track listing endpoint, by way of the Options object. Several other endpoints read in this way already, such as in CurrentUserAlbumsOpt.

Some tracks, like this one, provide different localized names for the track / album depending on which market the request is being made from. This also when querying playlists that include tracks with localized names.