We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 639a84e commit f744bd0Copy full SHA for f744bd0
workbench_core.py
@@ -407,7 +407,11 @@ def join_via_wav_then_lame(
407
try:
408
listfile = output_mp3.with_suffix(".concat_list.txt")
409
big_wav = output_mp3.with_suffix(".joined.wav")
410
- list_lines = [f"file '{str(p).replace(\"'\", \"'\\''\")}'" for p in wav_files]
+ 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}'")
415
listfile.write_text("\n".join(list_lines) + "\n", encoding="utf-8", errors="ignore")
416
417
rc1, so1, se1 = _run_capture(
0 commit comments