Skip to content

Commit

Permalink
Fix comment like extraction due to Youtube changes
Browse files Browse the repository at this point in the history
Variable name changed from likeCount to voteCount
  • Loading branch information
user234683 committed May 18, 2021
1 parent 0b20a60 commit e4634ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions youtube/yt_data_extract/everything_else.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4634ab

Please sign in to comment.