use local method for spotify auth
This commit is contained in:
parent
5326d6d2f7
commit
e0ceb3a968
2
main.py
2
main.py
|
@ -86,7 +86,7 @@ def update_spotify_from_export():
|
||||||
print(f'Spotify tracks: {len(spotify_links)}')
|
print(f'Spotify tracks: {len(spotify_links)}')
|
||||||
|
|
||||||
scope = "playlist-modify-private"
|
scope = "playlist-modify-private"
|
||||||
os.environ['SPOTIPY_REDIRECT_URI'] = 'https://example.com/callback'
|
os.environ['SPOTIPY_REDIRECT_URI'] = 'http://127.0.0.1:9090'
|
||||||
|
|
||||||
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope))
|
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope))
|
||||||
sp.playlist(SPOTIFY_PLAYLIST_ID)
|
sp.playlist(SPOTIFY_PLAYLIST_ID)
|
||||||
|
|
Loading…
Reference in New Issue