From 618704257d74604ca30d1049e2951a3a462e1f6c Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Sun, 13 Jun 2021 22:49:00 +0200
Subject: [PATCH] import: added scope for public playlists

---
 SpotifyImport.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SpotifyImport.py b/SpotifyImport.py
index 3c5fb71..2aac83a 100644
--- a/SpotifyImport.py
+++ b/SpotifyImport.py
@@ -14,7 +14,7 @@ LOGGER = DefaultLogger().create_logger_if_not_exists('SpotifyBackup', logFormat=
 class SpotifyImport:
     def __init__(self, clientID: str):
         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)
 
     def import_playlist(self, backupFilePath: str, username: str, playlistID: str):
-- 
GitLab