mirror of
				https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
				synced 2025-11-03 21:10:34 +00:00 
			
		
		
		
	Revert "Can now download all of an artists songs fixes#88"
This reverts commit 41b09712e55954a1cc2f5b8080b4e1f31339e3d5.
This commit is contained in:
		
							parent
							
								
									41b09712e5
								
							
						
					
					
						commit
						36be67b827
					
				@ -35,13 +35,7 @@ def get_artist_albums(artist_id):
 | 
				
			|||||||
    """ Returns artist's albums """
 | 
					    """ Returns artist's albums """
 | 
				
			||||||
    resp = ZSpotify.invoke_url(f'{ARTIST_URL}/{artist_id}/albums')
 | 
					    resp = ZSpotify.invoke_url(f'{ARTIST_URL}/{artist_id}/albums')
 | 
				
			||||||
    # Return a list each album's id
 | 
					    # Return a list each album's id
 | 
				
			||||||
    album_ids = [resp[ITEMS][i][ID] for i in range(len(resp[ITEMS]))]
 | 
					    return [resp[ITEMS][i][ID] for i in range(len(resp[ITEMS]))]
 | 
				
			||||||
    # Recursive requests to get all albums including singles an EPs
 | 
					 | 
				
			||||||
    while resp['next'] is not None:
 | 
					 | 
				
			||||||
        resp = ZSpotify.invoke_url(resp['next'])
 | 
					 | 
				
			||||||
        album_ids.extend([resp[ITEMS][i][ID] for i in range(len(resp[ITEMS]))])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return album_ids
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def download_album(album):
 | 
					def download_album(album):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user