Commit Graph

522 Commits

Author SHA1 Message Date
CyanBook
349587ca32 Support for playlist_cover_image (#431) 2020-01-26 13:20:20 +00:00
Stephane Bruckert
26db832e24 Temporarily revert #428 2020-01-23 10:06:19 +00:00
Stephane Bruckert
bc7d49ca50 Fix changelog 2020-01-22 21:39:38 +00:00
Peter
87a72a060f Automatic refresh of Authorization Code Flow Tokens in long-running Applications (#428)
* auto-refresh user token

* example for a long-running user-request app

* wrap long lines

* combine duplicate code into _refresh_token_if_expired method

* add changelog entry
2020-01-22 20:01:30 +00:00
Stephane Bruckert
9df45e858e Add missing auth to doc examples, fixes #427 2020-01-21 23:34:50 +00:00
Stephane Bruckert
feb31325ef Bump to 2.7.1 2020-01-20 22:00:36 +00:00
Stephane Bruckert
30b7ea198f Bump to 2.7.0 2020-01-20 21:56:54 +00:00
Stéphane Bruckert
1807905572
Support to upload playlist covers (#416) 2020-01-20 19:56:24 +00:00
Stephane Bruckert
44911f7285 Fix show_my_saved_tracks example, closes #70 2020-01-17 19:12:26 +00:00
Stéphane Bruckert
dda55b25df
Support for playlist_tracks,
Closes #335, closes #318
2020-01-17 18:12:13 +00:00
Stephane Bruckert
45c3e5e951 Update/remove outdated examples 2020-01-16 23:47:18 +00:00
Stephane Bruckert
7fb97ed00e No warning in python2 2020-01-16 23:30:40 +00:00
Stephane Bruckert
3d22cf29ce Deprecate old endpoints 2020-01-16 23:14:52 +00:00
Stephane Bruckert
960ee3cc8f Merge branch 'master' of github.com:plamere/spotipy 2020-01-16 22:12:06 +00:00
Stephane Bruckert
6da643e8c1 Bump to 2.6.3 2020-01-16 18:00:27 +00:00
Stephane Bruckert
6ff0c290a8 Python2 fix 2020-01-16 17:57:17 +00:00
Stéphane Bruckert
fc0c45654a
Merge pull request #423 from plamere/bump-2.6.2
Bump to 2.6.2
2020-01-16 17:50:33 +00:00
Stephane Bruckert
ab75d3d30c Use README as PyPi description 2020-01-16 17:47:15 +00:00
Stephane Bruckert
07505d720c Bump to 2.6.2 2020-01-16 04:14:42 +00:00
Stéphane Bruckert
8c4493da99
Format 2020-01-16 04:04:21 +00:00
Stéphane Bruckert
badfce64b7
Merge pull request #244 from alisha/master
Use client credentials flow to fix broken non-authorized requests in test files, fixes #193, #194
2020-01-16 04:03:07 +00:00
Stephane Bruckert
2ab985a3c8 Lint 2020-01-16 03:55:50 +00:00
Stephane Bruckert
83a1cb54ef Fix doc and readme 2020-01-16 03:54:39 +00:00
CyanBook
49011c337f
Update client.py 2020-01-15 22:07:49 +01:00
CyanBook
8678cd1f20
Added playlist_tracks 2020-01-15 22:00:56 +01:00
Stéphane Bruckert
9b8c90dbe1
Merge branch 'master' into master 2020-01-15 19:16:38 +00:00
dependabot[bot]
7229cc4edc Bump requests from 2.3.0 to 2.20.0 (#400)
* Bump requests from 2.3.0 to 2.20.0

Bumps [requests](https://github.com/requests/requests) from 2.3.0 to 2.20.0.
- [Release notes](https://github.com/requests/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](https://github.com/requests/requests/compare/v2.3.0...v2.20.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Changelog

Co-authored-by: Stéphane Bruckert <stephane.bruckert@gmail.com>
2020-01-15 10:36:55 +00:00
Stéphane Bruckert
c2b6be6446
Merge pull request #269 from sonneveld/client-internal-call-refactor
Refactor client internal calls to allow keepalive
2020-01-14 13:57:45 +00:00
Stephane Bruckert
c591126842 Changelog 2020-01-13 20:12:07 +00:00
Stephane Bruckert
f8608c80eb Close custom session in test 2020-01-13 20:09:37 +00:00
Stéphane Bruckert
542389900f
Merge branch 'master' into client-internal-call-refactor 2020-01-13 19:58:53 +00:00
Stephane Bruckert
7d507ad224 Bump to 2.6.1 2020-01-13 17:05:06 +00:00
Ritiek Malhotra
9c5b9c068f
Merge pull request #420 from ritiek/fix-split-http-url
Trim '?<key>' when extracting ID from HTTP URLs
2020-01-13 07:09:31 -08:00
Ritiek Malhotra
e6829a1139 Add a changelog entry for #420 2020-01-13 20:25:40 +05:30
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
Peter Bengtsson
4ec320774d Don't require mock for install (#419)
Fixes #418
2020-01-13 14:23:51 +00:00
Stephane Bruckert
cc572364cb Update changelog 2020-01-12 16:06:50 +00:00
David Anderson Lino de Sousa
b12281e761 Fix invalid calls to logging method (#297)
The `_warn` method expects a String, and not a Format String + arguments
2020-01-12 15:29:17 +00:00
Matt John
1609edd4a8 Fix bug where formatted arguments are passed to self._warn, which only accepts a single string (#371) 2020-01-12 15:29:04 +00:00
Stéphane Bruckert
c3bad99e43
Revert "Remove unnecessary token_info parameter for oauth2.SpotifyClientCredentials methods (#223)" (#417)
This reverts commit 908a92897b.
2020-01-12 15:14:25 +00:00
Ritiek Malhotra
908a92897b Remove unnecessary token_info parameter for oauth2.SpotifyClientCredentials methods (#223) 2020-01-12 15:13:31 +00:00
Stephane Bruckert
eaca998123 Bump to 2.6.0 2020-01-12 14:42:52 +00:00
Stéphane Bruckert
f54830e272
Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
Stéphane Bruckert
5928981e3b
Add Github action to check lint 2020-01-12 13:18:34 +00:00
Stéphane Bruckert
b1ceab2b8f
Merge pull request #392 from TimJay/master
requests_cache compatibility
2020-01-12 01:48:16 +00:00
Stéphane Bruckert
9b3b61bdc4
Merge pull request #224 from foxyblue/clean-examples
Clean examples
2020-01-12 00:48:11 +00:00
Stéphane Bruckert
549e692af6
Merge pull request #235 from amsimoes/patch-1
Fixes typo on recommendations usage comment
2020-01-12 00:42:08 +00:00
Stephane Bruckert
c4b302b4e2 Fix example 2020-01-12 00:22:57 +00:00
Stéphane Bruckert
3b2b05769a
Merge pull request #219 from gwynnebaer/master
python 3 syntax for print() example in README.md
2020-01-12 00:19:40 +00:00
Stéphane Bruckert
53c4f30e9c
Merge pull request #368 from s2t2/patch-1
Update oauth2 Docs
2020-01-12 00:12:23 +00:00