tracks = album_info["tracklist"] for track in tracks: track_id = track["id"] track_title = track["title"] file_name = f"{track_title}.mp3"
# Set the download directory DOWNLOAD_DIR = "/path/to/download/dir" discogs downloader better
def download_album(album_info): album_title = album_info["title"] artist_name = album_info["artist"]["name"] download_dir = os.path.join(DOWNLOAD_DIR, f"{artist_name} - {album_title}") f"{artist_name} - {album_title}")