mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-07 09:33:04 -05:00
Improve channel header extraction error
This commit is contained in:
parent
b48bed7f90
commit
1b72748798
@ -51,7 +51,7 @@ def extract_auto_generated_channel_header(initdata : Hash(String, JSON::Any), uc
|
|||||||
description_node = header_view.try &.dig?("description", "descriptionPreviewViewModel", "description", "content")
|
description_node = header_view.try &.dig?("description", "descriptionPreviewViewModel", "description", "content")
|
||||||
tags = [] of String
|
tags = [] of String
|
||||||
else
|
else
|
||||||
raise InfoException.new("Could not extract channel header.")
|
raise InfoException.new("Could not extract channel header for #{ucid}: expected interactiveTabbedHeaderRenderer or pageHeaderRenderer.")
|
||||||
end
|
end
|
||||||
|
|
||||||
family_safe = initdata.dig?("microformat", "microformatDataRenderer", "familySafe").try &.as_bool
|
family_safe = initdata.dig?("microformat", "microformatDataRenderer", "familySafe").try &.as_bool
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user