From e44647f1064c994237f6266b9b53b49a0d34db7e Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 17 May 2021 17:48:03 -0700 Subject: Fix comment like extraction due to Youtube changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Variable name changed from likeCount to voteCount Signed-off-by: Jesús --- youtube/yt_data_extract/everything_else.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'youtube') diff --git a/youtube/yt_data_extract/everything_else.py b/youtube/yt_data_extract/everything_else.py index 7020df8..f39de90 100644 --- a/youtube/yt_data_extract/everything_else.py +++ b/youtube/yt_data_extract/everything_else.py @@ -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) -- cgit v1.2.3