From a82d78c0d0fca47be72c9c01fb361f13a83b4734 Mon Sep 17 00:00:00 2001 From: syeopite Date: Tue, 3 Aug 2021 01:04:09 -0700 Subject: [PATCH] Document all channel brand_urls --- src/invidious.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index 9bcd7219..1d183637 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -317,9 +317,13 @@ Invidious::Routing.get "/channel/:ucid/community", Invidious::Routes::Channels, Invidious::Routing.get "/channel/:ucid/about", Invidious::Routes::Channels, :about ["", "/videos", "/playlists", "/community", "/about"].each do |path| + # /c/LinusTechTips Invidious::Routing.get "/c/:user#{path}", Invidious::Routes::Channels, :brand_redirect + # /user/linustechtips | Not always the same as /c/ Invidious::Routing.get "/user/:user#{path}", Invidious::Routes::Channels, :brand_redirect + # /attribution_link?a=anything&u=/channel/UCZYTClx2T1of7BRZ86-8fow Invidious::Routing.get "/attribution_link#{path}", Invidious::Routes::Channels, :brand_redirect + # /profile?user=linustechtips Invidious::Routing.get "/profile/#{path}", Invidious::Routes::Channels, :profile end