Replace / and \ in track
This commit is contained in:
parent
bc4f3ee1ce
commit
9ad02ef1af
1 changed files with 6 additions and 1 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Reference in a new issue