commit
30e518a5fc
@ -181,6 +181,7 @@ def ReadCommentsBilibili(f, fontsize):
|
|||||||
p = str(comment.getAttribute('p')).split(',')
|
p = str(comment.getAttribute('p')).split(',')
|
||||||
assert len(p) >= 5
|
assert len(p) >= 5
|
||||||
assert p[1] in ('1', '4', '5', '6', '7', '8')
|
assert p[1] in ('1', '4', '5', '6', '7', '8')
|
||||||
|
if comment.childNodes.length > 0:
|
||||||
if p[1] in ('1', '4', '5', '6'):
|
if p[1] in ('1', '4', '5', '6'):
|
||||||
c = str(comment.childNodes[0].wholeText).replace('/n', '\n')
|
c = str(comment.childNodes[0].wholeText).replace('/n', '\n')
|
||||||
size = int(p[2])*fontsize/25.0
|
size = int(p[2])*fontsize/25.0
|
||||||
|
Loading…
Reference in New Issue
Block a user