mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add support for 'attribution_link'
This commit is contained in:
parent
9122f8acee
commit
1c9085556c
1 changed files with 10 additions and 0 deletions
|
@ -2783,6 +2783,16 @@ get "/profile" do |env|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
get "/attribution_link" do |env|
|
||||||
|
if query = env.params.query["u"]?
|
||||||
|
url = URI.parse(query).full_path
|
||||||
|
else
|
||||||
|
url = "/"
|
||||||
|
end
|
||||||
|
|
||||||
|
env.redirect url
|
||||||
|
end
|
||||||
|
|
||||||
# Page used by YouTube to provide captioning widget, since we
|
# Page used by YouTube to provide captioning widget, since we
|
||||||
# don't support it we redirect to '/'
|
# don't support it we redirect to '/'
|
||||||
get "/timedtext_video" do |env|
|
get "/timedtext_video" do |env|
|
||||||
|
|
Loading…
Reference in a new issue