From 00dbec6be124c3f646f8eace0e80b48701307a1e Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 27 Jun 2023 16:53:36 +0200 Subject: [PATCH] fix cover downloader --- tidal_scrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidal_scrape.py b/tidal_scrape.py index 610e041..7565349 100755 --- a/tidal_scrape.py +++ b/tidal_scrape.py @@ -130,7 +130,7 @@ def download_track( def download_cover(album: tidalapi.Album) -> None: print(f"Downloading cover for {album.name}") # type: ignore[reportOptionalMemberAccess] album_name = re.sub("/", " ", album.name) # type: ignore[reportOptionalMemberAccess] - artist_name = re.sub("/", " ", track.artist.name) # type: ignore[reportOptionalMemberAccess] + artist_name = re.sub("/", " ", album.artist.name) # type: ignore[reportOptionalMemberAccess] dest_path = f"{DEST_PATH}/{artist_name}/{album_name}/cover.png" # type: ignore[reportOptionalMemberAccess] url = album.image(1280)