From 31aaf468c08ce2c27e02dfcfc0aa72f9773a3b43 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 1 Aug 2016 21:02:38 +0200 Subject: [PATCH] subtitle: decode some htmlentities in sami fixes #421 --- lib/svtplay_dl/subtitle/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/subtitle/__init__.py b/lib/svtplay_dl/subtitle/__init__.py index 197eb22..f6309d5 100644 --- a/lib/svtplay_dl/subtitle/__init__.py +++ b/lib/svtplay_dl/subtitle/__init__.py @@ -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')