use album artist for path instead of track artist
This commit is contained in:
parent
03c3268e5c
commit
87a4f218d7
|
@ -81,7 +81,7 @@ def download_track(
|
||||||
try:
|
try:
|
||||||
album_name = re.sub("/", " ", track.album.name) # type: ignore[reportOptionalMemberAccess]
|
album_name = re.sub("/", " ", track.album.name) # type: ignore[reportOptionalMemberAccess]
|
||||||
track_name = re.sub("/", " ", track.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]
|
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]
|
dest_path = f"{DEST_PATH}/{artist_name}/{album_name}/{track.track_num} {track_name}" # type: ignore[reportOptionalMemberAccess]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue