1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

subtitle_smi: encode it as iso-8859-1

this fixes #282
This commit is contained in:
Johan Andersson 2015-10-19 23:35:57 +02:00
parent 580c2a8c9d
commit e188ca8f56

View File

@ -113,6 +113,7 @@ class subtitle(object):
if is_py3: if is_py3:
subdata = subdata.decode("latin") subdata = subdata.decode("latin")
else: else:
subdata.encoding = "ISO-8859-1"
subdata = subdata.text subdata = subdata.text
ssubdata = StringIO(subdata) ssubdata = StringIO(subdata)
timea = 0 timea = 0