aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/watch.html
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2024-01-22 05:59:11 +0800
committerAstound <kirito@disroot.org>2024-01-22 05:59:11 +0800
commit51a16937891ebb6d419ad21d0189182cb1197430 (patch)
tree59a87f94f9b22f7785db7d54c697abc83a99e1ac /youtube/templates/watch.html
parentca4a7356924450f21228e823b4bcc1416aea05d3 (diff)
downloadyt-local-51a16937891ebb6d419ad21d0189182cb1197430.tar.lz
yt-local-51a16937891ebb6d419ad21d0189182cb1197430.tar.xz
yt-local-51a16937891ebb6d419ad21d0189182cb1197430.zip
Fix comment count extraction due to 'K/M' postfixes
YouTube now displays 2K comments instead of 2359, for instance
Diffstat (limited to 'youtube/templates/watch.html')
-rw-r--r--youtube/templates/watch.html2
1 files changed, 1 insertions, 1 deletions
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 @@
<div class="comments-area-outer comments-disabled">Comments disabled</div>
{% else %}
<details class="comments-area-outer" {{'open' if settings.comments_mode == 1 else ''}}>
- <summary>{{ comment_count|commatize }} comment{{'s' if comment_count != 1 else ''}}</summary>
+ <summary>{{ comment_count|commatize }} comment{{'s' if comment_count != '1' else ''}}</summary>
<div class="comments-area-inner comments-area">
{% if comments_info %}
{{ comments.video_comments(comments_info) }}