diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-07-15 21:53:24 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-07-15 21:53:24 -0500 |
| commit | 73247d75caa470b7c68cb117f252d3583b8b8d48 (patch) | |
| tree | 13a8f4f049c71474a79afa4b5919cf93fe54347f | |
| parent | 9cb96de4262ea62cbc851504219c48e4b6e31247 (diff) | |
| download | invidious-73247d75caa470b7c68cb117f252d3583b8b8d48.tar.gz invidious-73247d75caa470b7c68cb117f252d3583b8b8d48.tar.bz2 invidious-73247d75caa470b7c68cb117f252d3583b8b8d48.zip | |
Add fix for mimetype in /videoplayback
| -rw-r--r-- | src/invidious.cr | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 766dacce..dacefad4 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -998,6 +998,12 @@ get "/videoplayback*" do |env| if path != "/videoplayback" path = path.lchop("/videoplayback/") 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("/") raw_params = {} of String => Array(String) |
