Fix comment like extraction due to Youtube changes
Variable name changed from likeCount to voteCount Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
parent
b01a16d45b
commit
e44647f106
@ -284,6 +284,8 @@ def extract_comments_info(polymer_json):
|
||||
comment_info['text'] = extract_formatted_text(comment_renderer.get('contentText'))
|
||||
comment_info['time_published'] = extract_str(comment_renderer.get('publishedTimeText'))
|
||||
comment_info['like_count'] = comment_renderer.get('likeCount')
|
||||
liberal_update(comment_info, 'like_count',
|
||||
extract_int(comment_renderer.get('voteCount')))
|
||||
liberal_update(comment_info, 'reply_count', comment_renderer.get('replyCount'))
|
||||
|
||||
info['comments'].append(comment_info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user