Commit Graph

480 Commits

Author SHA1 Message Date
Dj
b09c1585c1
Remove basicConfig as it is not needed, fixes #478 (#482) 2020-04-26 23:52:57 +01:00
rako77
71a19de031
Added a method to update the auth token (#479)
* Added a method to update the auth token

* trying to fix errors
2020-04-26 21:39:12 +01:00
Stephane Bruckert
c58501972c Bump to 2.11.2 2020-04-19 22:46:32 +01:00
Jonas Camillus Jeppesen
d3bab0f054
Fix issue with hanging authorization process if no port is provided, fixes #471, fixes #474 (#477)
* Fixed issue where using rediret uri 'localhost' (without specifying a port) would cause the authorization process to hang (not asking the user to paste/enter the URL redirected to)

* Updated the documentation to match the changes to the authorization process - also kind of fixing issues #474 and #471

* Fixed Flake8 over-indentation remark
2020-04-19 22:39:03 +01:00
MatsErdkamp
98d49fb20e
Fixed documentation audio features, fixes #468 (#469)
Line 1235: 
OLD - tracks - a list of track URIs, URLs or IDs, maximum: *50* ids
NEW - tracks - a list of track URIs, URLs or IDs, maximum: *100* ids
2020-04-12 12:02:23 +01:00
Stephane Bruckert
73654a0646 Bump to 2.11.1 2020-04-11 17:43:13 +01:00
Stephane Bruckert
02cd9b0923 Improve URL parsing, fixes #171, fixes #253, fixes #276, solves #467 2020-04-11 17:40:26 +01:00
Stephane Bruckert
d4912c6679 Update contributing 2020-04-11 13:43:54 +01:00
Stephane Bruckert
a61422ef4b Bump to 2.11.0 2020-04-11 13:32:43 +01:00
Stephane Bruckert
c6de8dc713 Fix no handler could be found for logger 2020-04-11 13:32:23 +01:00
Jonne Kaunisto
85dfc680fe
Added syntax highlighting to README (#463) 2020-04-03 23:41:43 +01:00
Jonne Kaunisto
b6d35d4926
Moved dependencies to setup.py extras (#462) 2020-04-03 23:04:05 +01:00
Dj
b01adba826
Print -> Logging, fixes #84 (#461) 2020-04-03 23:03:09 +01:00
Loisaida Sam
ccfda079c8
Propagate refresh token error, fixes #259 (#261)
* Propagate refresh token error #259

https://github.com/plamere/spotipy/issues/259

* Lint

* Format

Co-authored-by: Stephane Bruckert <contact@stephanebruckert.com>
2020-04-02 20:03:24 +01:00
AlPoza
5b5b30dd0f
Add session in SpotifyAuthBase (#383)
Co-authored-by: XIS01536 <apozadel@extern.isban.es>
Co-authored-by: Stephane Bruckert <contact@stephanebruckert.com>
2020-04-01 23:02:56 +01:00
Stephane Bruckert
6d7fe6c195 Close session when spotipy is unloaded, fixes #90 2020-04-01 21:57:56 +01:00
Stephane Bruckert
73aac90bbe Auto-close auth browser window 2020-04-01 21:25:48 +01:00
Zsolt Cserna
acdcfcecf8
oauth2.py: add local http server to serve redirects (#243)
When spotify redirects the browser to localhost, serve the page with a
simple http server implemented by HTTPServer. By this way, we can obtain
the tokens the oauth service want so provide us, and no need to input the
user the redirect URL.

This method only works when the application in spotify developer dashboard
is configured to redirect the requests to localhost.

To use this method it is required to specify the redirect_url pointing to
localhost with simple http, to a non-privilegized port (unless the script is
run as root).
2020-04-01 18:16:13 +01:00
Dj
7a06046e2b
http-retries - documented changes for issue (#347) (#460) 2020-03-29 22:57:43 +01:00
Dj
024a6c96d4
Retries For All Endpoints, fixes #347 (#457)
* test_improvements - Add __init__.py files to tests dirs so you can run all tests

* test_improvements - added helpers file, restructured tests to work without previous data and to be grouped with api type

* http_retries - Implement Retry for all requests

* Readme - Update README with contributing info

* PR Feedback - Added CONTRIBUTING.md, fixed README, fixed test
2020-03-29 17:18:23 +01:00
jugdizh
8b84300597
Added endpoints for shows/podcasts and episodes, closes #450
https://developer.spotify.com/documentation/web-api/reference-beta/#category-shows
https://developer.spotify.com/documentation/web-api/reference-beta/#category-episodes
2020-03-24 21:36:25 +00:00
Stephane Bruckert
4b8350b8bc Bump to 2.10.0 2020-03-18 20:39:26 +00:00
Stephane Bruckert
3baa19abd1 Release with CHANGELOG + LICENSE, solves #454 2020-03-18 20:34:22 +00:00
Peter-Schorn
3fb2454740
Update CHANGELOG (#453) 2020-03-13 00:58:32 +00:00
Peter-Schorn
9315d00990
'add to queue' endpoint added (#452) 2020-03-13 00:58:04 +00:00
Stephane Bruckert
37b6b5fd80 Add multiple accounts example, solves #446 2020-03-12 00:53:36 +00:00
Stephane Bruckert
f43fd568d6 Link to proxies doc, solves #449 2020-03-11 23:40:39 +00:00
Ritiek Malhotra
3a156a1f92
Merge pull request #447 from plamere/remove-unnecessary-print-statements
Remove unnecessary print statements
2020-03-03 06:39:08 +05:30
Ritiek Malhotra
4d1dbfe3ca
Remove unnecessary print statements
which show up when fetching access token using:

```python
credentials = oauth2.SpotifyClientCredentials(
    client_id=client_id,
   client_secret=client_secret,
)
token = credentials.get_access_token()
```
2020-03-02 17:32:17 +05:30
Stephane Bruckert
13109c1613 Update tracks doc, fixes #160 2020-02-22 13:11:32 +00:00
Stephane Bruckert
9bd2169b49 Update recommendations doc, fixes #290 2020-02-22 13:08:26 +00:00
Stephane Bruckert
3b74b10a91 CI badge to update on master only 2020-02-22 11:39:07 +00:00
Stephane Bruckert
7422e90e89 Fix CI 2020-02-22 11:35:39 +00:00
Stephane Bruckert
28485cfa3e Lint 2020-02-22 11:15:19 +00:00
Stephane Bruckert
9ed584b398 Player endpoints example and test 2020-02-22 11:12:29 +00:00
Stephane Bruckert
125267fa4e Fix exception is raised in exception handler, fixes #403 2020-02-16 12:37:52 +00:00
Stephane Bruckert
76522dfd1e Bump to 2.9.0 2020-02-15 19:48:21 +00:00
Stéphane Bruckert
dcc53b983e
Merge pull request #442 from CharleyPearce/master
Made cache optional in get_access_token #441
2020-02-15 19:42:46 +00:00
pearce
d71913d087 Made cache optional in get_access_token #441 2020-02-15 19:23:51 +00:00
Alexey Paramonov
1f1e90ed39
Add requests_timeout parameter to auth module (#233) 2020-02-13 00:04:40 +00:00
Stephane Bruckert
2273696850 Add position_ms to start_playback 2020-02-12 23:35:38 +00:00
Stephane Bruckert
60f530842d Fix 2020-02-12 23:14:26 +00:00
Stephane Bruckert
14268a8a2c Add playlist_tracks example 2020-02-12 23:08:42 +00:00
Stephane Bruckert
db65b98790 Bump to 2.8.0 2020-02-12 22:42:20 +00:00
Stephane Bruckert
94a26407a7 Fix integration tests 2020-02-12 22:27:42 +00:00
JohannesPertl
04bdd27d85
Prompt option to always show a dialog when giving permissions to Spotify (#438)
* Add show_dialog option to prompt_for_user_token()

* Adjust test_get_authorize_url_shows_dialog_when_requested
2020-02-12 20:49:26 +00:00
Stefano
4515446a65 Auto-refresh AuthCode flow token. (#435)
* Auto-refresh AuthCode flow token.

* Reformatted.

* Reformatted.

* Removed invalid syntax.

* Removed abstract class SpotifyAuthManager.

* Fix typo on docstrings.

* Optionally try to fetch main input parameters from environment.

Implements the capability of trying to fetch the following parameters from the environment, when they're not directly passed to the authorization handler.
The affected parameters are: client_id, client_secret, redirect_uri.
An SpotifyOauthError is raised if no value gets found.

* Removed f-string for Python2 compatibility.

* Fix line-too-long.

* Remove useless import.

* Add username to docstring.

* Remove redundant return.

* Fix empty lines print statement for backward compatibility with Python2.

* Update simple4 example.

* Set optional 'as_dict' parameter on OAuth 'get_access_token'.

* Update changelog.

Co-authored-by: Stéphane Bruckert <stephane.bruckert@gmail.com>
2020-02-10 10:20:02 +00:00
S Murthy
3b0e8febc4
Linting of core subpackage + clean up imports (#437)
* Linting of OAuth2 mod. + update tests to detect core package path

* Tweak imports in tests + update tox ini to ignore Flake8 E501 error

* Tweak tox ini - ignore examples

* Remove `f`-string from OAuth2 mod.

* More import tweaks in core package + tests

* Update flake8 config. in tox ini - set line length limit to 99 chars.
2020-02-09 12:59:20 +00:00
Ritiek Malhotra
c22ba27cf1
Merge pull request #436 from MLK97/master
Updated documentation for search-method
2020-02-05 21:22:11 +05:30
MLK97
9056bd1309 updated documentation for search method 2020-02-05 15:48:31 +01:00