From 69cef997328eb24a499654a230b9ef22097908dd Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Sat, 2 Nov 2013 19:30:45 +0800 Subject: [PATCH] Add support for tucao.cc http://www.tucao.cc/ --- danmaku2ass.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/danmaku2ass.py b/danmaku2ass.py index 986483f..24217b3 100755 --- a/danmaku2ass.py +++ b/danmaku2ass.py @@ -109,6 +109,8 @@ def ProbeCommentFormat(f): return 'Niconico' elif tmp == 'xml version="1.0" encoding="UTF-8"?>= 8 + assert len(p) >= 5 assert p[1] in ('1', '4', '5') c = str(comment.childNodes[0].wholeText).replace('/n', '\\n') size = int(p[2])*fontsize/25.0