summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-08-07 14:45:37 -0500
committerOmar Roth <omarroth@hotmail.com>2018-08-07 14:45:37 -0500
commit0f6fcf5833b1a1ae55705cdae1ce760588c69578 (patch)
tree3739b2e11b5f28d7f159be529074fba39a3cf0c9 /src
parent8ff8ed1e5f54807f669aa7c99ce2f2be3c02f999 (diff)
downloadinvidious-0f6fcf5833b1a1ae55705cdae1ce760588c69578.tar.gz
invidious-0f6fcf5833b1a1ae55705cdae1ce760588c69578.tar.bz2
invidious-0f6fcf5833b1a1ae55705cdae1ce760588c69578.zip
Update API to match documentation
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 4165de02..66846fdd 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -1976,7 +1976,7 @@ get "/api/v1/videos/:id" do |env|
hlsvp = video.info["hlsvp"]
hlsvp = hlsvp.gsub("https://manifest.googlevideo.com", host_url)
- json.field "hls", hlsvp
+ json.field "hlsUrl", hlsvp
end
json.field "adaptiveFormats" do
@@ -2167,7 +2167,7 @@ get "/api/v1/trending" do |env|
json.field "author", author
json.field "authorUrl", author_url
- json.field "published", published
+ json.field "published", published.epoch
json.field "description", description
json.field "descriptionHtml", descriptionHtml
end
@@ -2448,7 +2448,7 @@ get "/api/v1/channels/:ucid/videos" do |env|
json.field "descriptionHtml", descriptionHtml
json.field "viewCount", view_count
- json.field "published", published
+ json.field "published", published.epoch
json.field "lengthSeconds", length_seconds
end
end