mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Add redirect for '/channels/:ucid/videos'
This commit is contained in:
parent
668cd6c3e4
commit
f249192ebb
1 changed files with 13 additions and 0 deletions
|
@ -2724,6 +2724,19 @@ get "/channel/:ucid" do |env|
|
||||||
templated "channel"
|
templated "channel"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
get "/channel/:ucid/videos" do |env|
|
||||||
|
ucid = env.params.url["ucid"]
|
||||||
|
params = env.request.query
|
||||||
|
|
||||||
|
if !params || params.empty?
|
||||||
|
params = ""
|
||||||
|
else
|
||||||
|
params = "?#{params}"
|
||||||
|
end
|
||||||
|
|
||||||
|
env.redirect "/channel/#{ucid}#{params}"
|
||||||
|
end
|
||||||
|
|
||||||
get "/api/manifest/dash/id/:id" do |env|
|
get "/api/manifest/dash/id/:id" do |env|
|
||||||
env.response.headers.add("Access-Control-Allow-Origin", "*")
|
env.response.headers.add("Access-Control-Allow-Origin", "*")
|
||||||
env.response.content_type = "application/dash+xml"
|
env.response.content_type = "application/dash+xml"
|
||||||
|
|
Loading…
Reference in a new issue