comment out

This commit is contained in:
TeamMasse 2025-01-30 22:22:31 +01:00
parent ba66d62d8e
commit bea747c3c0
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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|