From 36ac67610d1e52df731a21525fac966413541fa9 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Wed, 27 Aug 2025 20:23:39 -0400 Subject: [PATCH] fix(parser): fix unavailable comments on videos --- src/invidious/videos/parser.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index 7c0a77d9..8a3890e3 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -410,9 +410,9 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any # Comments enabled? comments_enabled = false - # When comments are enabled there should be a comments-entry-point section in the primary results + # When comments are enabled there should be a comment-item-section section in the primary results if primary_results - section = primary_results.as_a.find(&.dig?("itemSectionRenderer", "sectionIdentifier").== "comments-entry-point") + section = primary_results.as_a.find(&.dig?("itemSectionRenderer", "targetId").== "comments-section") if section comments_enabled = true