From bea747c3c0cb8c46b71b6780546cd40534e4b424 Mon Sep 17 00:00:00 2001 From: TeamMasse Date: Thu, 30 Jan 2025 22:22:31 +0100 Subject: [PATCH] comment out --- docker-compose.yml | 1 + src/invidious/routes/errors.cr | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4b39a1a3..3092ac91 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/src/invidious/routes/errors.cr b/src/invidious/routes/errors.cr index 0dd99716..5c8d7d06 100644 --- a/src/invidious/routes/errors.cr +++ b/src/invidious/routes/errors.cr @@ -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|