update the naming of the comments section in Innertube

Downstreamed from 36ac67610d
This commit is contained in:
Fijxu 2026-08-03 15:12:18 -04:00
parent 57f284d249
commit 79f29780a4
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -298,9 +298,9 @@ module Invidious::Videos::Parser
# 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 comments-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