From 45d8b7e21810c9bdace184b9cd9295f581856ceb Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 14 Oct 2021 23:12:30 +0700 Subject: [PATCH] ignore missing video rating --- tubearchivist/home/templates/home/video.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tubearchivist/home/templates/home/video.html b/tubearchivist/home/templates/home/video.html index 5d721eb..03a2faa 100644 --- a/tubearchivist/home/templates/home/video.html +++ b/tubearchivist/home/templates/home/video.html @@ -56,11 +56,13 @@

Views: {{ video.stats.view_count|intcomma }}

thumbs-up: {{ video.stats.like_count|intcomma }}

thumbs-down: {{ video.stats.dislike_count|intcomma }}

-

Rating: - {% for star in video.stats.average_rating %} - {{ star }} - {% endfor %} -

+ {% if video.stats.average_rating %} +

Rating: + {% for star in video.stats.average_rating %} + {{ star }} + {% endfor %} +

+ {% endif %}