mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Add dashUrl to /api/v1/videos
This commit is contained in:
parent
aa8ff7ace3
commit
d522c864d4
1 changed files with 2 additions and 0 deletions
|
@ -3036,6 +3036,8 @@ get "/api/v1/videos/:id" do |env|
|
|||
json.field "hlsUrl", hlsvp
|
||||
end
|
||||
|
||||
json.field "dashUrl", "#{make_host_url(config, Kemal.config)}/api/manifest/dash/id/#{id}"
|
||||
|
||||
json.field "adaptiveFormats" do
|
||||
json.array do
|
||||
adaptive_fmts.each do |fmt|
|
||||
|
|
Loading…
Reference in a new issue