mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-03 12:08:29 +00:00
comment out
This commit is contained in:
parent
ba66d62d8e
commit
bea747c3c0
@ -31,6 +31,7 @@ services:
|
||||
# https_only: false
|
||||
# statistics_enabled: false
|
||||
hmac_key: "Ahyie5aiz6ahCh2naex4"
|
||||
|
||||
healthcheck:
|
||||
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
||||
interval: 30s
|
||||
|
@ -20,13 +20,13 @@ module Invidious::Routes::ErrorRoutes
|
||||
# haltf env, status_code: 302
|
||||
#end
|
||||
|
||||
html = XML.parse_html(response.body)
|
||||
ucid = html.xpath_node(%q(//link[@rel="canonical"])).try &.["href"].split("/")[-1]
|
||||
#html = XML.parse_html(response.body)
|
||||
#ucid = html.xpath_node(%q(//link[@rel="canonical"])).try &.["href"].split("/")[-1]
|
||||
|
||||
if ucid
|
||||
env.response.headers["Location"] = "/channel/#{ucid}"
|
||||
haltf env, status_code: 302
|
||||
end
|
||||
#if ucid
|
||||
# env.response.headers["Location"] = "/channel/#{ucid}"
|
||||
# haltf env, status_code: 302
|
||||
#end
|
||||
|
||||
params = [] of String
|
||||
env.params.query.each do |k, v|
|
||||
|
Loading…
Reference in New Issue
Block a user