Try to prevent redirect for DASH streams

pull/633/head
Omar Roth 2019-07-04 23:28:25 -05:00
rodzic e5fa5df7be
commit 28df6881a7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B8254FB7EC3D37F2
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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