Fix comment count extraction due to 'K/M' postfixes

YouTube now displays 2K comments instead of 2359, for instance
This commit is contained in:
2024-01-22 05:59:11 +08:00
parent ca4a735692
commit 51a1693789
3 changed files with 8 additions and 5 deletions

View File

@@ -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) }}