mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-06 00:52:45 -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")
|
||||
tags = [] of String
|
||||
else
|
||||
raise InfoException.new("Could not extract channel header.")
|
||||
raise InfoException.new("Could not extract channel header for #{ucid}: expected interactiveTabbedHeaderRenderer or pageHeaderRenderer.")
|
||||
end
|
||||
|
||||
family_safe = initdata.dig?("microformat", "microformatDataRenderer", "familySafe").try &.as_bool
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user