optionally render srt subtitles

This commit is contained in:
j 2025-11-21 11:00:06 +01:00
commit ce51e8c2c4

View file

@ -374,10 +374,10 @@ def get_offset_duration(prefix):
def write_subtitles(data, folder, options):
data = fix_overlaps(data)
path = folder / "front.srt"
'''
if options.get("subtitle_format") == "srt":
srt = ox.srt.encode(data)
write_if_new(str(path), srt, 'b')
'''
else:
if os.path.exists(path):
os.unlink(path)
path = folder / "front.ass"