mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add /feeds/videos.xml
This commit is contained in:
parent
0ae43e242f
commit
36c0eae7ed
1 changed files with 10 additions and 0 deletions
|
@ -2315,6 +2315,16 @@ get "/feed/playlist/:plid" do |env|
|
||||||
document
|
document
|
||||||
end
|
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
|
# Support push notifications via PubSubHubbub
|
||||||
|
|
||||||
get "/feed/webhook/:token" do |env|
|
get "/feed/webhook/:token" do |env|
|
||||||
|
|
Loading…
Reference in a new issue