From 28df6881a7eade190236ace253947a52e3a2da32 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 4 Jul 2019 23:28:25 -0500 Subject: [PATCH] Try to prevent redirect for DASH streams --- src/invidious.cr | 4 ++-- 1 file 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("") if local - url = URI.parse(url).full_path.lchop("/") + url = URI.parse(url).full_path end "#{url}" @@ -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