diff options
author | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-11 16:28:30 +0200 |
---|---|---|
committer | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-11 16:28:30 +0200 |
commit | 643a0e8659b7358bb2c06cc707e36b82b949c912 (patch) | |
tree | 1757edb6a1a075c70861f883517fc7ffe93e66a4 /youtube | |
parent | 4844fa6d658bbe4964e906b44c3b459f9c4507c9 (diff) | |
download | yt-local-643a0e8659b7358bb2c06cc707e36b82b949c912.tar.lz yt-local-643a0e8659b7358bb2c06cc707e36b82b949c912.tar.xz yt-local-643a0e8659b7358bb2c06cc707e36b82b949c912.zip |
remove trimming of comment likes
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/comments.py | 10 |
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']: |