mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-06 00:52:45 -05:00
update the naming of the comments section in Innertube
Downstreamed from 36ac67610d
This commit is contained in:
parent
57f284d249
commit
79f29780a4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user