Keep getting "expected string or bytes-like object" error
Closed this issue · 3 comments
arashmath commented
cdown commented
As the error message says, srt.parse
takes a string, not a file object.
You need sub = srt.parse(file.read())
arashmath commented
As the error message says,
srt.parse
takes a string, not a file object.You need
sub = srt.parse(file.read())
Thank you so much for your help.