From 36c0eae7edd19b45e60388bbe60d3b5a53a92445 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 29 Mar 2019 15:50:18 -0500 Subject: [PATCH] Add /feeds/videos.xml --- src/invidious.cr | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index b576148ef..f93f17e44 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2315,6 +2315,16 @@ get "/feed/playlist/:plid" do |env| document end +get "/feeds/videos.xml" do |env| + if ucid = env.params.query["channel_id"]? + env.redirect "/feed/channel/#{ucid}" + elsif user = env.params.query["user"]? + env.redirect "/feed/channel/#{user}" + elsif plid = env.params.query["playlist_id"]? + env.redirect "/feed/playlist/#{plid}" + end +end + # Support push notifications via PubSubHubbub get "/feed/webhook/:token" do |env|