Skip to content
Snippets Groups Projects
Commit 61870425 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

import: added scope for public playlists

parent 67c535bb
Branches
Tags
No related merge requests found
...@@ -14,7 +14,7 @@ LOGGER = DefaultLogger().create_logger_if_not_exists('SpotifyBackup', logFormat= ...@@ -14,7 +14,7 @@ LOGGER = DefaultLogger().create_logger_if_not_exists('SpotifyBackup', logFormat=
class SpotifyImport: class SpotifyImport:
def __init__(self, clientID: str): def __init__(self, clientID: str):
client_credentials_manager = SpotifyPKCE(client_id=clientID, redirect_uri='http://localhost:8080', client_credentials_manager = SpotifyPKCE(client_id=clientID, redirect_uri='http://localhost:8080',
scope='playlist-modify-private') scope='playlist-modify-private,playlist-modify-public')
self._spotify = spotipy.Spotify(client_credentials_manager=client_credentials_manager) self._spotify = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
def import_playlist(self, backupFilePath: str, username: str, playlistID: str): def import_playlist(self, backupFilePath: str, username: str, playlistID: str):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment