mirror of
				https://github.com/JonasunderscoreJones/turbo-octo-potato.git
				synced 2025-10-28 03:29:18 +01:00 
			
		
		
		
	fixed issue where verbose state was ignored
Fixed respecting verbose state
This commit is contained in:
		
							parent
							
								
									46f329f1d2
								
							
						
					
					
						commit
						249a2dcdad
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -72,7 +72,7 @@ def createPlaylist(sp: spotipy.Spotify, songs: list[(str, str, str, str)], userI | ||||||
| 
 | 
 | ||||||
| if __name__ == "__main__": | if __name__ == "__main__": | ||||||
|     verboseprint("Authenticating...") |     verboseprint("Authenticating...") | ||||||
|     authenticator = top_lib.Auth() |     authenticator = top_lib.Auth(verbose=VERBOSE) | ||||||
|     sp = authenticator.newSpotifyauth("playlist-modify-public playlist-modify-private") |     sp = authenticator.newSpotifyauth("playlist-modify-public playlist-modify-private") | ||||||
|     verboseprint("Authenticated!") |     verboseprint("Authenticated!") | ||||||
| 
 | 
 | ||||||
|  | @ -90,8 +90,6 @@ if __name__ == "__main__": | ||||||
|     albums_unsorted = [] |     albums_unsorted = [] | ||||||
|     for artist in remove_duplicates(artists): |     for artist in remove_duplicates(artists): | ||||||
|         albums_unsorted.extend(spotifyManager.fetchArtistAlbums(artist)[0]) |         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) |     albums = insertion_sort(albums_unsorted) | ||||||
|     verboseprint("Found " + str(len(albums))+ " Albums!") |     verboseprint("Found " + str(len(albums))+ " Albums!") | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue