Skip to content

Commit f744bd0

Browse files
authored
Update workbench_core.py
1 parent 639a84e commit f744bd0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

workbench_core.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,11 @@ def join_via_wav_then_lame(
407407
try:
408408
listfile = output_mp3.with_suffix(".concat_list.txt")
409409
big_wav = output_mp3.with_suffix(".joined.wav")
410-
list_lines = [f"file '{str(p).replace(\"'\", \"'\\''\")}'" for p in wav_files]
410+
list_lines = []
411+
for p in wav_files:
412+
# Perform the replacement outside the f-string
413+
safe_path = str(p).replace("'", "'\\''")
414+
list_lines.append(f"file '{safe_path}'")
411415
listfile.write_text("\n".join(list_lines) + "\n", encoding="utf-8", errors="ignore")
412416

413417
rc1, so1, se1 = _run_capture(

0 commit comments

Comments
 (0)