mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-06 21:48:31 +00:00
do it
This commit is contained in:
parent
164d764d55
commit
f602e857eb
@ -15,10 +15,10 @@ module Invidious::Routes::ErrorRoutes
|
||||
response = YT_POOL.client &.get(URI.parse(response.headers["Location"]).request_target)
|
||||
end
|
||||
|
||||
if response.body.empty?
|
||||
env.response.headers["Location"] = "/"
|
||||
haltf env, status_code: 302
|
||||
end
|
||||
#if response.body.empty?
|
||||
# env.response.headers["Location"] = "/"
|
||||
# haltf env, status_code: 302
|
||||
#end
|
||||
|
||||
html = XML.parse_html(response.body)
|
||||
ucid = html.xpath_node(%q(//link[@rel="canonical"])).try &.["href"].split("/")[-1]
|
||||
|
Loading…
Reference in New Issue
Block a user