diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-04-11 15:28:03 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-04-11 15:28:03 -0500 |
| commit | d522c864d4028c9836fe85317bf27e3900f55fe6 (patch) | |
| tree | 940fd746328680f705323a05508d33e8e8ad0f8f /src | |
| parent | aa8ff7ace3602febb4ac4ffb922d18f27628730e (diff) | |
| download | invidious-d522c864d4028c9836fe85317bf27e3900f55fe6.tar.gz invidious-d522c864d4028c9836fe85317bf27e3900f55fe6.tar.bz2 invidious-d522c864d4028c9836fe85317bf27e3900f55fe6.zip | |
Add dashUrl to /api/v1/videos
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 6ecc0559..83b389a7 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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| |
