diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-03-29 15:50:18 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-03-29 15:50:18 -0500 |
| commit | 36c0eae7edd19b45e60388bbe60d3b5a53a92445 (patch) | |
| tree | 0b0d8967ae33e8616862d33f992bb68ecb9556ac /src | |
| parent | 0ae43e242fb6284d66f3e18249560cdcea225ef5 (diff) | |
| download | invidious-36c0eae7edd19b45e60388bbe60d3b5a53a92445.tar.gz invidious-36c0eae7edd19b45e60388bbe60d3b5a53a92445.tar.bz2 invidious-36c0eae7edd19b45e60388bbe60d3b5a53a92445.zip | |
Add /feeds/videos.xml
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index b576148e..f93f17e4 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| |
