Skip to content

Commit

Permalink
Add quotation marks to the list of clip-ending characters
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Mar 21, 2023
1 parent ad1f904 commit 03c012d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
caption_count = 0
continue

# If the caption text ends with a period, exclamation point, or question mark (but not an
# ellipsis), this is the end of the clip.
if (text[-1:] == '.' or text[-1:] == '!' or text[-1:] == '?') and text[-3:] != '...':
# If the caption text ends with a period, exclamation point, question mark, or quotation mark
# (but not an ellipsis), this is the end of the clip.
if(text[-1:] == '.' or text[-1:] == '!' or text[-1:] == '?' or text[-1:] == '"') and text[-3:] != '...':

if (caption_count == 0):
clip['end_time'] = caption['end_time']
Expand Down

0 comments on commit 03c012d

Please sign in to comment.