From 249a2dcdad3141d14dcd714e4d8f9fa2234739ac Mon Sep 17 00:00:00 2001 From: J-onasJones Date: Mon, 25 Sep 2023 20:31:54 +0200 Subject: [PATCH] fixed issue where verbose state was ignored Fixed respecting verbose state --- discographymaker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/discographymaker.py b/discographymaker.py index 773a938..1af96f9 100644 --- a/discographymaker.py +++ b/discographymaker.py @@ -72,7 +72,7 @@ def createPlaylist(sp: spotipy.Spotify, songs: list[(str, str, str, str)], userI if __name__ == "__main__": verboseprint("Authenticating...") - authenticator = top_lib.Auth() + authenticator = top_lib.Auth(verbose=VERBOSE) sp = authenticator.newSpotifyauth("playlist-modify-public playlist-modify-private") verboseprint("Authenticated!") @@ -90,8 +90,6 @@ if __name__ == "__main__": albums_unsorted = [] for artist in remove_duplicates(artists): albums_unsorted.extend(spotifyManager.fetchArtistAlbums(artist)[0]) - #albums_unsorted.extend() - #albums_unsorted = [item for sublist in spotifyManager.fetchArtistAlbums(remove_duplicates(artists)) for item in sublist] albums = insertion_sort(albums_unsorted) verboseprint("Found " + str(len(albums))+ " Albums!")