Skip to content

Commit

Permalink
open subtitles files with utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
antiboredom committed May 27, 2022
1 parent 32b8538 commit 597ef02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion videogrep/videogrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def parse_transcript(

transcript = None

with open(subfile, "r") as infile:
with open(subfile, "r", encoding="utf8") as infile:
if subfile.endswith(".srt"):
transcript = srt.parse(infile)
elif subfile.endswith(".vtt"):
Expand Down

0 comments on commit 597ef02

Please sign in to comment.