Update main.py
This commit is contained in:
parent
e6b4f7b722
commit
a5511bc57b
5
main.py
5
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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user