mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add 'premiereTimestamp' to /api/v1/videos
This commit is contained in:
parent
f0658bbd09
commit
88b70973cc
5 changed files with 42 additions and 8 deletions
|
@ -2899,6 +2899,11 @@ get "/api/v1/videos/:id" do |env|
|
|||
json.field "rating", video.info["avg_rating"].to_f32
|
||||
json.field "isListed", video.is_listed
|
||||
json.field "liveNow", video.live_now
|
||||
json.field "isUpcoming", video.is_upcoming
|
||||
|
||||
if video.is_upcoming
|
||||
json.field "premiereTimestamp", video.premiere_timestamp
|
||||
end
|
||||
|
||||
if video.player_response["streamingData"]?.try &.["hlsManifestUrl"]?
|
||||
host_url = make_host_url(config, Kemal.config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue