diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index f39f2a362..2f0952c89 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -300,7 +300,7 @@ module Invidious::Videos::Parser # When comments are enabled there should be a comments-entry-point section in the primary results if primary_results - section = primary_results.as_a.find { |s| s.dig?("itemSectionRenderer", "sectionIdentifier") == "comments-entry-point" } + section = primary_results.as_a.find(&.dig?("itemSectionRenderer", "sectionIdentifier").== "comments-entry-point") if section comments_enabled = true