From e0ceb3a968bf10e56e23ced8c55429d5682764ac Mon Sep 17 00:00:00 2001 From: Matthias Jacob Date: Thu, 9 Mar 2023 23:27:13 +0100 Subject: [PATCH] use local method for spotify auth --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a7244cf..0c53dec 100644 --- a/main.py +++ b/main.py @@ -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)