From 7453e571fc4ad5835634e6031f93085b6fdb150e Mon Sep 17 00:00:00 2001 From: uohlhv Date: Mon, 30 Jun 2025 00:04:53 +0800 Subject: [PATCH] Fix ass syntax --- danmaku2ass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danmaku2ass.py b/danmaku2ass.py index 4b6563c..0329055 100755 --- a/danmaku2ass.py +++ b/danmaku2ass.py @@ -397,7 +397,7 @@ def WriteCommentAcfunPositioned(f, c, width, height, styleid): try: comment_args = c[3] text = ASSEscape(str(comment_args['n']).replace('\r', '\n')) - common_styles = ['\org(%d, %d)' % (width / 2, height / 2)] + common_styles = ['\\org(%d, %d)' % (width / 2, height / 2)] anchor = {0: 7, 1: 8, 2: 9, 3: 4, 4: 5, 5: 6, 6: 1, 7: 2, 8: 3}.get(comment_args.get('c', 0), 7) if anchor != 7: common_styles.append('\\an%s' % anchor)