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