Update main.py

This commit is contained in:
TylerCG 2025-09-13 09:45:10 -04:00
parent e6b4f7b722
commit a5511bc57b

View File

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