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

subtitle_tt: converting didn't work.

based on a fix from quite @ github
This commit is contained in:
Johan Andersson 2013-05-29 23:19:37 +02:00
parent 358803c722
commit c982f29551

View File

@ -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":