diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-07-04 23:28:25 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-07-04 23:29:28 -0500 |
| commit | 28df6881a7eade190236ace253947a52e3a2da32 (patch) | |
| tree | b7a12d4718c526efd1aaa031cc9437da226c914f /src | |
| parent | e5fa5df7be38d60ce9e4835bae170d805482afc0 (diff) | |
| download | invidious-28df6881a7eade190236ace253947a52e3a2da32.tar.gz invidious-28df6881a7eade190236ace253947a52e3a2da32.tar.bz2 invidious-28df6881a7eade190236ace253947a52e3a2da32.zip | |
Try to prevent redirect for DASH streams
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 3585d928..12d47921 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -4321,7 +4321,7 @@ get "/api/manifest/dash/id/:id" do |env| url = url.rchop("</BaseURL>") if local - url = URI.parse(url).full_path.lchop("/") + url = URI.parse(url).full_path end "<BaseURL>#{url}</BaseURL>" @@ -4334,7 +4334,7 @@ get "/api/manifest/dash/id/:id" do |env| if local adaptive_fmts.each do |fmt| - fmt["url"] = URI.parse(fmt["url"]).full_path.lchop("/") + fmt["url"] = URI.parse(fmt["url"]).full_path end end |
