diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index 46f2ad53..c75ec7c1 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -421,7 +421,7 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any # 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