From 522012110d8242f444d007db06f94bd9c8329932 Mon Sep 17 00:00:00 2001 From: Michael Kuperfish Steinberg <36902556+Michael-K-Stein@users.noreply.github.com> Date: Sat, 14 Jan 2023 18:56:40 +0200 Subject: [PATCH] Fix file paths error --- spotify_mass_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotify_mass_download.py b/spotify_mass_download.py index 3fdca1a..01d4cfd 100644 --- a/spotify_mass_download.py +++ b/spotify_mass_download.py @@ -61,7 +61,7 @@ def download_track_list(download_dir: str, track_list: list, recursive_artist: b downloaded_count += 1 continue g_downloaded_songs.append(track.spotify_id) - track_path = f'{download_dir}{track.artists[0].name}/{track.album.title}' + track_path = f'{download_dir}{clean_file_path(track.artists[0].name)}/{clean_file_path(track.album.title)}' track.download_to_file(scraper, track_path) console.happy(f'Thread<{my_thread_id}> | Downloaded: {track.preview_title()}') if (recursive_album or recursive) and len(track_list) < recursive_limit: