#135·audiblez

ffmpeg concat fails with filenames with "'" (apostrophe) in the file name, such as "Magician's Guild"

Author: Reed97123Created Nov 30, 2025Updated Nov 30, 2025

Replace:

    with open(wav_list_txt, 'w') as f:
        for wav_file in chapter_files:
            f.write(f"file '{wav_file}'\n")

With:

    with open(wav_list_txt, 'w') as f:
        for wav_file in chapter_files:
            escaped = str(wav_file).replace("'", r"'\''")
            f.write(f"file '{escaped}'\n")