From 00ef1c862744ec00886bc3fa4b95fdfc6c151866 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Thu, 25 Feb 2021 15:55:23 -0800 Subject: Fix comment replies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comment reply protobuf now requires the channel id of the uploader of the video. Otherwise the endpoint returns 500. Instead of making the protobuf ourselves and passing this data around through query parameters, just use the ctoken provided to us but modify the max_replies field from 10 to 250. Fixes #53 Signed-off-by: Jesús --- youtube/templates/comments.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'youtube/templates') diff --git a/youtube/templates/comments.html b/youtube/templates/comments.html index ceb31b8..808f98a 100644 --- a/youtube/templates/comments.html +++ b/youtube/templates/comments.html @@ -23,14 +23,18 @@ {{ comment['likes_text'] if comment['like_count'] else ''}}
- {% if settings.use_comments_js and comment['reply_count'] %} -
- {{ comment['view_replies_text'] }} - Open in new tab -
loading..
-
- {% elif comment['reply_count'] %} - {{ comment['view_replies_text'] }} + {% if comment['reply_count'] %} + {% if settings.use_comments_js and comment['replies_url'] %} +
+ {{ comment['view_replies_text'] }} + Open in new tab +
loading...
+
+ {% elif comment['replies_url'] %} + {{ comment['view_replies_text'] }} + {% else %} + {{ comment['view_replies_text'] }} (error constructing url) + {% endif %} {% endif %}
-- cgit v1.2.3