MCPcopy Create free account
hub / github.com/Jack-Cherish/python-spider / FlushCommentLine

Function FlushCommentLine

bilibili/xml2ass.py:348–350  ·  view source on GitHub ↗
(f, text, styles, start_time, end_time, styleid)

Source from the content-addressed store, hash-verified

346 return styles
347
348 def FlushCommentLine(f, text, styles, start_time, end_time, styleid):
349 if end_time > start_time:
350 f.write('Dialogue: -1,%(start)s,%(end)s,%(styleid)s,,0,0,0,,{%(styles)s}%(text)s\n' % {'start': ConvertTimestamp(start_time), 'end': ConvertTimestamp(end_time), 'styles': ''.join(styles), 'text': text, 'styleid': styleid})
351
352 try:
353 comment_args = c[3]

Callers 2

Calls 1

ConvertTimestampFunction · 0.70

Tested by

no test coverage detected