subtitle path has changed too
This commit is contained in:
parent
2d2256de14
commit
793a74cd17
1 changed files with 2 additions and 2 deletions
|
|
@ -333,13 +333,13 @@ def write_subtitles(data, folder, options):
|
|||
if options.get("subtitle_format") == "srt":
|
||||
srt = ox.srt.encode(data)
|
||||
write_if_new(str(path), srt, 'b')
|
||||
path = folder / "front.ass"
|
||||
path = folder / "segment.ass"
|
||||
if os.path.exists(path):
|
||||
os.unlink(path)
|
||||
else:
|
||||
if os.path.exists(path):
|
||||
os.unlink(path)
|
||||
path = folder / "front.ass"
|
||||
path = folder / "segment.ass"
|
||||
ass = ass_encode(data, options)
|
||||
write_if_new(str(path), ass, '')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue