use local method for spotify auth

This commit is contained in:
Matthias Jacob 2023-03-09 23:27:13 +01:00
parent 5326d6d2f7
commit e0ceb3a968
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def update_spotify_from_export():
print(f'Spotify tracks: {len(spotify_links)}')
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.playlist(SPOTIFY_PLAYLIST_ID)