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:
James Taylor 2021-05-17 17:48:03 -07:00 committed by Jesús
parent b01a16d45b
commit e44647f106
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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)