Merge pull request #1658 from jksladjflkjsadflkjsadf/dashmanifesthost

save host when using dash manifest
This commit is contained in:
TheFrenchGhosty 2021-01-12 17:56:52 +00:00 committed by GitHub
commit cc3f019b28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3190,7 +3190,8 @@ get "/api/manifest/dash/id/:id" do |env|
url = url.rchop("</BaseURL>")
if local
url = URI.parse(url).full_path
uri = URI.parse(url)
url = "#{uri.full_path}host/#{uri.host}/"
end
"<BaseURL>#{url}</BaseURL>"