Skip to content

Commit

Permalink
Fixing VTT errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Sep 19, 2024
1 parent 969de0f commit a5bc124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iiify/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,8 +881,8 @@ def create_vtt_stream(identifier):
if "-->" in line:
splitline = line.split("-->")
starttime = timeToDelta(splitline[0].strip()) + timedelta(seconds=start)
endtime = timeToDelta(splitline[0].strip()) + timedelta(seconds=start)
line = f"{formatTimeVTT(starttime)} -> {formatTimeVTT(endtime)}"
endtime = timeToDelta(splitline[1].strip()) + timedelta(seconds=start)
line = f"{formatTimeVTT(starttime)} --> {formatTimeVTT(endtime)}"

vtt_content.append(line)

Expand Down

0 comments on commit a5bc124

Please sign in to comment.