From 9ad02ef1af15b89c366726ec654084b60dce21a2 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Sun, 10 Aug 2025 23:00:11 +0200 Subject: [PATCH] Replace / and \ in track --- src/qobuz_dl_remote/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qobuz_dl_remote/main.py b/src/qobuz_dl_remote/main.py index f7df866..f0e630c 100755 --- a/src/qobuz_dl_remote/main.py +++ b/src/qobuz_dl_remote/main.py @@ -89,7 +89,12 @@ class Album: id=tid, title=track["title"], album=album, - dest_path=f"{album.dest_path}/{album.artist} - {album.title} - {tnr + 1:02d} {track['title']}.flac", + dest_path=os.path.join( + album.dest_path, + f"{album.artist} - {album.title} - {tnr + 1:02d} {track['title']}.flac".replace( + "/", "-" + ).replace("\\", "-"), + ), ) for tnr, (tid, track) in enumerate( zip(data["track_ids"], data["tracks"]["items"])