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

Function FindAlternativeRow

bilibili/xml2ass.py:623–630  ·  view source on GitHub ↗
(rows, c, height, bottomReserved)

Source from the content-addressed store, hash-verified

621
622
623def FindAlternativeRow(rows, c, height, bottomReserved):
624 res = 0
625 for row in range(height-bottomReserved-math.ceil(c[7])):
626 if not rows[c[4]][row]:
627 return row
628 elif rows[c[4]][row][0] < rows[c[4]][res][0]:
629 res = row
630 return res
631
632
633def MarkCommentRow(rows, c, row):

Callers 1

ProcessCommentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected