format
This commit is contained in:
parent
7e267da5be
commit
3881038a32
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ module Invidious::Routes::API::V1::Misc
|
||||||
if head_response.headers["location"]?
|
if head_response.headers["location"]?
|
||||||
url = head_response.headers["location"]
|
url = head_response.headers["location"]
|
||||||
end
|
end
|
||||||
|
|
||||||
resolved_url = YoutubeAPI.resolve_url(url.as(String))
|
resolved_url = YoutubeAPI.resolve_url(url.as(String))
|
||||||
endpoint = resolved_url["endpoint"]
|
endpoint = resolved_url["endpoint"]
|
||||||
pageType = endpoint.dig?("commandMetadata", "webCommandMetadata", "webPageType").try &.as_s || ""
|
pageType = endpoint.dig?("commandMetadata", "webCommandMetadata", "webPageType").try &.as_s || ""
|
||||||
|
|
Loading…
Reference in a new issue