mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
Fix "chapter_subtitle_path" error
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user