mirror of
				https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
				synced 2025-11-03 21:10:34 +00:00 
			
		
		
		
	Check if Name of Song is set
If the Name is not set, the download will fail. With this change the Download will continue and a Error message will show that the Song does not exist anymore
This commit is contained in:
		
							parent
							
								
									8c2a83d51e
								
							
						
					
					
						commit
						13a79b777c
					
				@ -105,7 +105,10 @@ def client():
 | 
				
			|||||||
            download_from_user_playlist()
 | 
					            download_from_user_playlist()
 | 
				
			||||||
        elif sys.argv[1] == "-ls" or sys.argv[1] == "--liked-songs":
 | 
					        elif sys.argv[1] == "-ls" or sys.argv[1] == "--liked-songs":
 | 
				
			||||||
            for song in get_saved_tracks(token):
 | 
					            for song in get_saved_tracks(token):
 | 
				
			||||||
                download_track(song['track']['id'], "Liked Songs/")
 | 
					                if not song['track']['name']:
 | 
				
			||||||
 | 
					                    print("###   SKIPPING:  SONG DOES NOT EXISTS ON SPOTIFY ANYMORE   ###")
 | 
				
			||||||
 | 
					                else:
 | 
				
			||||||
 | 
					                    download_track(song['track']['id'], "Liked Songs/")
 | 
				
			||||||
                print("\n")
 | 
					                print("\n")
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            track_uri_search = re.search(
 | 
					            track_uri_search = re.search(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user