From a5511bc57b619677569920f0ac84781255a206e0 Mon Sep 17 00:00:00 2001 From: TylerCG <117808427+TylerCG@users.noreply.github.com> Date: Sat, 13 Sep 2025 09:45:10 -0400 Subject: [PATCH] Update main.py --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 73482de..0e43173 100644 --- a/main.py +++ b/main.py @@ -163,10 +163,11 @@ with open(meta_path, "w", encoding="utf-8") as mf: mf.write(f"title={safe_title}\n\n") # Build concat list -file_list = "concat_list.txt" +file_list = os.path.join(os.getcwd(), "concat_list.txt") with open(file_list, "w", encoding="utf-8") as fl: for p in selected_paths: - fl.write(f"file '{os.path.abspath(p)}'\n") + safe_path = os.path.abspath(p).replace("'", r"'\''") + fl.write(f"file '{safe_path}'\n") # Concatenate audio only merged = "merged.m4b"