Merge pull request #21 from asahui/fix_acfun
Fix the ReadCommentsAcfun method
This commit is contained in:
commit
166d733bae
@ -150,6 +150,8 @@ def ReadCommentsNiconico(f, fontsize):
|
|||||||
|
|
||||||
def ReadCommentsAcfun(f, fontsize):
|
def ReadCommentsAcfun(f, fontsize):
|
||||||
comment_element = json.load(f)
|
comment_element = json.load(f)
|
||||||
|
# after load acfun comment json file as python list, flatten the list
|
||||||
|
comment_element = [c for sublist in comment_element for c in sublist]
|
||||||
for i, comment in enumerate(comment_element):
|
for i, comment in enumerate(comment_element):
|
||||||
try:
|
try:
|
||||||
p = str(comment['c']).split(',')
|
p = str(comment['c']).split(',')
|
||||||
|
Loading…
Reference in New Issue
Block a user