aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/yt_data_extract
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-05-17 17:48:03 -0700
committerJesús <heckyel@hyperbola.info>2021-05-17 22:08:09 -0500
commite44647f1064c994237f6266b9b53b49a0d34db7e (patch)
tree0169c2b564850db0937d4c76505934e2ec112a96 /youtube/yt_data_extract
parentb01a16d45b11feb211dae0834850c19fe43043e4 (diff)
downloadyt-local-e44647f1064c994237f6266b9b53b49a0d34db7e.tar.lz
yt-local-e44647f1064c994237f6266b9b53b49a0d34db7e.tar.xz
yt-local-e44647f1064c994237f6266b9b53b49a0d34db7e.zip
Fix comment like extraction due to Youtube changes
Variable name changed from likeCount to voteCount Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/yt_data_extract')
-rw-r--r--youtube/yt_data_extract/everything_else.py2
1 files changed, 2 insertions, 0 deletions
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)