From 51a16937891ebb6d419ad21d0189182cb1197430 Mon Sep 17 00:00:00 2001 From: Astound Date: Mon, 22 Jan 2024 05:59:11 +0800 Subject: Fix comment count extraction due to 'K/M' postfixes YouTube now displays 2K comments instead of 2359, for instance --- youtube/templates/watch.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/templates') diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 9679a28..99dbc6d 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -233,7 +233,7 @@
Comments disabled
{% else %}
- {{ comment_count|commatize }} comment{{'s' if comment_count != 1 else ''}} + {{ comment_count|commatize }} comment{{'s' if comment_count != '1' else ''}}
{% if comments_info %} {{ comments.video_comments(comments_info) }} -- cgit v1.2.3