Skip to content

Commit

Permalink
Try to prevent redirect for DASH streams
Browse files Browse the repository at this point in the history
  • Loading branch information
omarroth committed Jul 5, 2019
1 parent e5fa5df commit 28df688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/invidious.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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>"
Expand All @@ -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

Expand Down

0 comments on commit 28df688

Please sign in to comment.