Commit Graph
2 Commits
Author SHA1 Message Date
Ritiek Malhotra 3e2e8ed0fb Trim '?<key>' when extracting ID from HTTP URLs
If this excess part isn't trimmed from the ID, it can cause unexpected
results when calling some API methods.

For example; this code now correctly returns all albums for an artist:
```
artist = 'https://open.spotify.com/artist/7oPftvlwr6VrsViSDV7fJY?si=M3PrzRC4TBOZu8YyLYc-tA'
artist_albums = sp.artist_albums(artist)
```

Previously, this code mimicked same behaviour as calling
`spotify.artist`, but now will return albums as expected
with this commit.

Fixes #365 and #323.
2020-01-13 20:24:53 +05:30
Ritiek Malhotra 908a92897b Remove unnecessary token_info parameter for oauth2.SpotifyClientCredentials methods (#223) 2020-01-12 15:13:31 +00:00