mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Merge pull request #1658 from jksladjflkjsadflkjsadf/dashmanifesthost
save host when using dash manifest
This commit is contained in:
commit
cc3f019b28
1 changed files with 2 additions and 1 deletions
|
@ -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>"
|
||||
|
|
Loading…
Reference in a new issue