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']: diff --git a/youtube/templates/comments.html b/youtube/templates/comments.html index 7d0ef85..7bd75e5 100644 --- a/youtube/templates/comments.html +++ b/youtube/templates/comments.html @@ -21,7 +21,7 @@ {{ common_elements.text_runs(comment['text']) }} {% endif %} - {{ comment['likes_text'] if comment['like_count'] else ''}} + {{ comment['likes_text'] if comment['approx_like_count'] else ''}}