diff --git a/abogen/conversion.py b/abogen/conversion.py index a3a95ad..1e6b262 100644 --- a/abogen/conversion.py +++ b/abogen/conversion.py @@ -775,7 +775,7 @@ class ConversionThread(QThread): # Generate ASS subtitle is_centered = subtitle_format in ("ass_centered_wide", "ass_centered_narrow") is_narrow = subtitle_format in ("ass_narrow", "ass_centered_narrow") - self._write_ass_subtitle(chapter_subtitle_path, chapter_subtitle_entries, is_centered, is_narrow) + self._write_ass_subtitle(subtitle_path, subtitle_entries, is_centered, is_narrow) else: # Generate SRT subtitle (default) with open(subtitle_path, "w", encoding="utf-8", errors="replace") as srt_file: