srt fix, only extract streams from video
This commit is contained in:
parent
93d2a77f3d
commit
f1ccb72542
2 changed files with 2 additions and 1 deletions
|
|
@ -195,6 +195,7 @@ class File(models.Model):
|
|||
encoding = _detectEncoding(f)
|
||||
data = f.read()
|
||||
f.close()
|
||||
data = data.replace('\r\n', '\n')
|
||||
try:
|
||||
data = unicode(data, encoding)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue