From d522c864d4028c9836fe85317bf27e3900f55fe6 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 11 Apr 2019 15:28:03 -0500 Subject: [PATCH] Add dashUrl to /api/v1/videos --- src/invidious.cr | 2 ++ 1 file changed, 2 insertions(+) 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|