2
0
Fork 0

fix cover downloader

This commit is contained in:
Luca Bilke 2023-06-27 16:53:36 +02:00
parent a3f872adb9
commit 00dbec6be1
1 changed files with 1 additions and 1 deletions

View File

@ -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)