From 87a4f218d7183f145ff9a68a17fd6b4db89fedf7 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 27 Jun 2023 20:24:59 +0200 Subject: [PATCH] use album artist for path instead of track artist --- tidal_scrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidal_scrape.py b/tidal_scrape.py index e76fa13..c0a2268 100755 --- a/tidal_scrape.py +++ b/tidal_scrape.py @@ -81,7 +81,7 @@ def download_track( try: album_name = re.sub("/", " ", track.album.name) # type: ignore[reportOptionalMemberAccess] track_name = re.sub("/", " ", track.name) # type: ignore[reportOptionalMemberAccess] - artist_name = re.sub("/", " ", track.artist.name) # type: ignore[reportOptionalMemberAccess] + artist_name = re.sub("/", " ", track.album.artist.name) # type: ignore[reportOptionalMemberAccess] dl_path = f"{DL_PATH}/{track.track_num} {track_name}.part" # type: ignore[reportOptionalMemberAccess] dest_path = f"{DEST_PATH}/{artist_name}/{album_name}/{track.track_num} {track_name}" # type: ignore[reportOptionalMemberAccess]