Merge pull request #1618 from saltycrys/fix-video-mode-button

Fix Video Mode Button
This commit is contained in:
TheFrenchGhosty 2020-12-29 13:55:19 +00:00 committed by GitHub
commit a06dfaf82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute
embed_link = "/embed/#{id}" embed_link = "/embed/#{id}"
if env.params.query.size > 1 if env.params.query.size > 1
embed_params = env.params.query.dup embed_params = HTTP::Params.parse(env.params.query.to_s)
embed_params.delete_all("v") embed_params.delete_all("v")
embed_link += "?" embed_link += "?"
embed_link += embed_params.to_s embed_link += embed_params.to_s