Browse Source

common: Fix subtitle reading (read as SubRipFile)

master
Jakub Valenta 1 year ago
parent
commit
3e40ffc2c5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tv_series/common.py

+ 2
- 1
tv_series/common.py View File

@@ -38,8 +38,9 @@ def convert_match_to_list(match):


def read_subs(file_path):
subs = pysrt.SubRipFile()
with open(file_path, errors='ignore') as f:
subs = list(pysrt.stream(f))
subs.read(f)
return subs




Loading…
Cancel
Save