do not include the playlist itself

This commit is contained in:
Matthias Jacob 2023-03-09 23:08:32 +01:00
parent 90355661bf
commit a9bbe2e9f6
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def update_spotify_from_export():
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope))
sp.playlist(SPOTIFY_PLAYLIST_ID)
print(sp.playlist_replace_items(SPOTIFY_PLAYLIST_ID, spotify_links))
print(sp.playlist_replace_items(SPOTIFY_PLAYLIST_ID, [s for s in spotify_links if not s.startswith('https://open.spotify.com/playlist/')]))
if __name__ == '__main__':