diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-06-09 15:58:28 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-06-10 12:47:09 -0500 |
commit | a9edc54aac43ce37ea6982aeb28c4e0552b6b91d (patch) | |
tree | 452f08d0ca80665c7a0c1448814ef1e1f6fa7448 /youtube/comments.py | |
parent | 9077596979843dd136ff96fec0d704d097949a34 (diff) | |
download | yt-local-a9edc54aac43ce37ea6982aeb28c4e0552b6b91d.tar.lz yt-local-a9edc54aac43ce37ea6982aeb28c4e0552b6b91d.tar.xz yt-local-a9edc54aac43ce37ea6982aeb28c4e0552b6b91d.zip |
Use extract_approx_int for comment likes
Full digits no longer available
Closes #64
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/comments.py')
-rw-r--r-- | youtube/comments.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube/comments.py b/youtube/comments.py index d47c826..208c161 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -118,10 +118,11 @@ def post_process_comments_info(comments_info): else: comment['view_replies_text'] = str(reply_count) + ' replies' - if comment['like_count'] == 1: + if comment['approx_like_count'] == '1': comment['likes_text'] = '1 like' else: - comment['likes_text'] = str(comment['like_count']) + ' likes' + comment['likes_text'] = (str(comment['approx_like_count']) + + ' likes') comments_info['include_avatars'] = settings.enable_comment_avatars if comments_info['ctoken']: |