mental32 / spotify.py

🌐 API wrapper for Spotify 🎶
https://spotifypy.readthedocs.io/en/latest/
MIT License
150 stars 38 forks source link

OAuth needs "scopes" oauth2_url use "scope" #48

Closed frafra closed 4 years ago

frafra commented 4 years ago
  File "/home/frafra/.cache/pypoetry/virtualenvs/spotify-share-library-sjzLS3P8-py3.7/lib64/python3.7/site-packages/spotify/client.py", line 140, in oauth2_url
    state=state,
  File "/home/frafra/.cache/pypoetry/virtualenvs/spotify-share-library-sjzLS3P8-py3.7/lib64/python3.7/site-packages/spotify/oauth.py", line 147, in url_only
    oauth = OAuth2(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'scope'

https://github.com/mental32/spotify.py/blob/f42b5c5977b686f0e99b9605e163e30d7781d408/spotify/client.py#L125-L126