From c982f2955128e36f0d540b97a93901ac125d11f6 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 29 May 2013 23:19:37 +0200 Subject: [PATCH] subtitle_tt: converting didn't work. based on a fix from quite @ github --- lib/svtplay_dl/utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/utils/__init__.py b/lib/svtplay_dl/utils/__init__.py index 85ce554..95eceb0 100644 --- a/lib/svtplay_dl/utils/__init__.py +++ b/lib/svtplay_dl/utils/__init__.py @@ -123,11 +123,11 @@ def norm(name): else: return name -def subtitle_tt(options, data): +def subtitle_tt(options, subtitle): i = 1 data = "" skip = False - tree = ET.parse(data) + tree = ET.ElementTree(ET.fromstring(subtitle)) for node in tree.iter(): tag = norm(node.tag) if tag == "p":