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

subtitle: decode some htmlentities in sami

fixes #421
This commit is contained in:
Johan Andersson 2016-08-01 21:02:38 +02:00
parent ce367f2b3e
commit 31aaf468c0

View File

@ -135,7 +135,7 @@ class subtitle(object):
subs += "\n%s\n%s --> %s\n" % (i.attrib["SpotNumber"], timecolon(i.attrib["TimeIn"]), timecolon(i.attrib["TimeOut"]))
else:
if int(n) > 0:
subs += "%s\n" % i.text
subs += "%s\n" % decode_html_entities(i.text)
if is_py2:
subs = subs.encode('utf8')