format
This commit is contained in:
parent
68d24dbaaf
commit
10a9565b09
@ -179,7 +179,7 @@ module Invidious::Routes::API::V1::Misc
|
||||
if head_response.headers["location"]?
|
||||
url = head_response.headers["location"]
|
||||
end
|
||||
|
||||
|
||||
resolved_url = YoutubeAPI.resolve_url(url.as(String))
|
||||
endpoint = resolved_url["endpoint"]
|
||||
pageType = endpoint.dig?("commandMetadata", "webCommandMetadata", "webPageType").try &.as_s || ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user