Replace / and \ in track

This commit is contained in:
Christoph Stahl 2025-08-10 23:00:11 +02:00
parent bc4f3ee1ce
commit 9ad02ef1af

View file

@ -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"])