From a9edc54aac43ce37ea6982aeb28c4e0552b6b91d Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 9 Jun 2021 15:58:28 -0700 Subject: Use extract_approx_int for comment likes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Full digits no longer available Closes #64 Signed-off-by: Jesús --- youtube/yt_data_extract/everything_else.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'youtube/yt_data_extract') diff --git a/youtube/yt_data_extract/everything_else.py b/youtube/yt_data_extract/everything_else.py index f39de90..7275975 100644 --- a/youtube/yt_data_extract/everything_else.py +++ b/youtube/yt_data_extract/everything_else.py @@ -284,8 +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'))) + comment_info['approx_like_count'] = extract_approx_int( + comment_renderer.get('voteCount')) liberal_update(comment_info, 'reply_count', comment_renderer.get('replyCount')) info['comments'].append(comment_info) -- cgit v1.2.3