mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
parent
2584d8cf56
commit
2e2c7259a9
31
FAQ.md
Normal file
31
FAQ.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
## Frequently Asked Questions
|
||||||
|
|
||||||
|
### Is there a way to get this field?
|
||||||
|
|
||||||
|
spotipy can only return fields documented on the Spotify web API https://developer.spotify.com/documentation/web-api/reference/
|
||||||
|
|
||||||
|
### Incorrect user
|
||||||
|
|
||||||
|
Error:
|
||||||
|
|
||||||
|
- You get `You cannot create a playlist for another user`
|
||||||
|
- You get `You cannot remove tracks from a playlist you don't own`
|
||||||
|
|
||||||
|
Solution:
|
||||||
|
|
||||||
|
- Verify that you are signed in with the correct account on https://spotify.com
|
||||||
|
- Remove your current token: `rm .cache-{userid}`
|
||||||
|
- Request a new token by adding `show_dialog=True` to `util.prompt_for_user_token(username,scope=scope,show_dialog=True)`
|
||||||
|
- Check that `spotipy.me()` shows the correct user id
|
||||||
|
|
||||||
|
### 401 Unauthorized
|
||||||
|
|
||||||
|
Error:
|
||||||
|
|
||||||
|
spotipy.exceptions.SpotifyException: http status: 401, code:-1 - https://api.spotify.com/v1/
|
||||||
|
Unauthorized.
|
||||||
|
|
||||||
|
Solution:
|
||||||
|
|
||||||
|
- You are likely missing a scope when requesting the endpoint, check
|
||||||
|
https://developer.spotify.com/web-api/using-scopes/
|
||||||
@ -43,4 +43,5 @@ for idx, track in enumerate(results['tracks']['items']):
|
|||||||
|
|
||||||
## Reporting Issues
|
## Reporting Issues
|
||||||
|
|
||||||
If you have suggestions, bugs or other issues specific to this library, file them [here](https://github.com/plamere/spotipy/issues). Or just send me a pull request.
|
For common questions please check our [FAQ](FAQ.md).
|
||||||
|
If you have suggestions, bugs or other issues specific to this library, file them [here](https://github.com/plamere/spotipy/issues). Or just send a pull request.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user