From 665878fd7210752c94c158e27ccb59801cac799a Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Sat, 16 Nov 2013 23:14:24 +0800 Subject: [PATCH] Ignore Niconico advanced comments --- danmaku2ass.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/danmaku2ass.py b/danmaku2ass.py index 9566be4..7cfff7d 100755 --- a/danmaku2ass.py +++ b/danmaku2ass.py @@ -108,6 +108,8 @@ def ReadCommentsNiconico(f, fontsize): for comment in comment_element: try: c = str(comment.childNodes[0].wholeText) + if c.startswith('/'): + continue # ignore advanced comments pos = 0 color = 0xffffff size = fontsize