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