|
|
@ -28,6 +28,14 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute
|
|
|
|
return env.redirect "/"
|
|
|
|
return env.redirect "/"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
embed_link = "/embed/#{id}"
|
|
|
|
|
|
|
|
if env.params.query.size > 1
|
|
|
|
|
|
|
|
embed_params = env.params.query.dup
|
|
|
|
|
|
|
|
embed_params.delete_all("v")
|
|
|
|
|
|
|
|
embed_link += "?"
|
|
|
|
|
|
|
|
embed_link += embed_params.to_s
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
plid = env.params.query["list"]?.try &.gsub(/[^a-zA-Z0-9_-]/, "")
|
|
|
|
plid = env.params.query["list"]?.try &.gsub(/[^a-zA-Z0-9_-]/, "")
|
|
|
|
continuation = process_continuation(PG_DB, env.params.query, plid, id)
|
|
|
|
continuation = process_continuation(PG_DB, env.params.query, plid, id)
|
|
|
|
|
|
|
|
|
|
|
|