Fix "chapter_subtitle_path" error

This commit is contained in:
Deniz Şafak
2025-07-06 04:41:55 +03:00
parent 60b22c7731
commit 0f025da06b
+1 -1
View File
@@ -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: