fix cover downloader
This commit is contained in:
parent
a3f872adb9
commit
00dbec6be1
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue