mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add fix for mimetype in /videoplayback
This commit is contained in:
parent
9cb96de426
commit
73247d75ca
1 changed files with 6 additions and 0 deletions
|
@ -998,6 +998,12 @@ get "/videoplayback*" do |env|
|
||||||
if path != "/videoplayback"
|
if path != "/videoplayback"
|
||||||
path = path.lchop("/videoplayback/")
|
path = path.lchop("/videoplayback/")
|
||||||
path = path.rchop("/")
|
path = path.rchop("/")
|
||||||
|
|
||||||
|
path = path.gsub(/mime\/\w+\/\w+/) do |mimetype|
|
||||||
|
mimetype = mimetype.split("/")
|
||||||
|
mimetype[0] + "/" + mimetype[1] + "%2F" + mimetype[2]
|
||||||
|
end
|
||||||
|
|
||||||
path = path.split("/")
|
path = path.split("/")
|
||||||
|
|
||||||
raw_params = {} of String => Array(String)
|
raw_params = {} of String => Array(String)
|
||||||
|
|
Loading…
Reference in a new issue