fixes
This commit is contained in:
parent
3014e197ad
commit
6a40d7ec48
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class Subtitle:
|
|||
if not rFile.suffix in self.allowedExtensions:
|
||||
raise Exception(f"File '{file}' subtitle type is not supported.")
|
||||
|
||||
if rFile.suffix is ".vtt":
|
||||
if rFile.suffix == ".vtt":
|
||||
subData = ''
|
||||
with open(realFile, 'r') as f:
|
||||
subData = f.read()
|
||||
|
|
|
|||
Loading…
Reference in a new issue