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:
parent
358803c722
commit
c982f29551
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user