mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Use dig to get properties
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
8bc60a4e6a
commit
be4f0c722f
1 changed files with 3 additions and 3 deletions
|
@ -53,9 +53,9 @@ def get_about_info(ucid, locale) : AboutChannel
|
|||
if ageGate = initdata.dig?("contents", "twoColumnBrowseResultsRenderer", "tabs", 0, "tabRenderer", "content", "sectionListRenderer", "contents", 0, "channelAgeGateRenderer")
|
||||
description_node = nil
|
||||
author = ageGate["channelTitle"].as_s
|
||||
ucid = initdata["responseContext"]["serviceTrackingParams"][0]["params"][0]["value"].as_s
|
||||
author_url = "https://www.youtube.com/channel/" + ucid
|
||||
author_thumbnail = ageGate["avatar"]["thumbnails"][0]["url"].as_s
|
||||
ucid = initdata.dig("responseContext", "serviceTrackingParams", 0, "params", 0, "value").as_s
|
||||
author_url = "https://www.youtube.com/channel/#{ucid}"
|
||||
author_thumbnail = ageGate.dig("avatar", "thumbnails", 0, "url").as_s
|
||||
banner = nil
|
||||
is_family_friendly = false
|
||||
is_age_gated = true
|
||||
|
|
Loading…
Reference in a new issue