aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/comments.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/comments.py')
-rw-r--r--youtube/comments.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/youtube/comments.py b/youtube/comments.py
index 1af9079..032ce8a 100644
--- a/youtube/comments.py
+++ b/youtube/comments.py
@@ -121,18 +121,10 @@ def post_process_comments_info(comments_info):
comment['view_replies_text'] = str(reply_count) + ' replies'
- def fmt_num(num):
- for unit in ['','k']:
- if num < 1000:
- return "%3.1f%s" % (num, unit) if unit else num
- num /= 1000.0
- return "%.1f%s" % (num, 'm')
-
- # if comment['like_count'] = '👍 ' + str(fmt_num(comment['like_count']))
if comment['like_count'] == 1:
comment['likes_text'] = '1 like'
else:
- comment['likes_text'] = str(fmt_num(comment['like_count'])) + ' likes'
+ comment['likes_text'] = str(comment['like_count']) + ' likes'
comments_info['include_avatars'] = settings.enable_comment_avatars
if comments_info['ctoken']: