mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Update API to match documentation
This commit is contained in:
parent
8ff8ed1e5f
commit
0f6fcf5833
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue