subtitle path has changed too

This commit is contained in:
j 2026-01-27 14:25:31 +01:00
commit 793a74cd17

View file

@ -333,13 +333,13 @@ def write_subtitles(data, folder, options):
if options.get("subtitle_format") == "srt": if options.get("subtitle_format") == "srt":
srt = ox.srt.encode(data) srt = ox.srt.encode(data)
write_if_new(str(path), srt, 'b') write_if_new(str(path), srt, 'b')
path = folder / "front.ass" path = folder / "segment.ass"
if os.path.exists(path): if os.path.exists(path):
os.unlink(path) os.unlink(path)
else: else:
if os.path.exists(path): if os.path.exists(path):
os.unlink(path) os.unlink(path)
path = folder / "front.ass" path = folder / "segment.ass"
ass = ass_encode(data, options) ass = ass_encode(data, options)
write_if_new(str(path), ass, '') write_if_new(str(path), ass, '')