Add 'liveNow' to /api/v1/channels

pull/229/head
Omar Roth 2018-11-08 16:35:57 -06:00
rodzic 0a1c84ada1
commit 6ae5d489ec
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -2540,6 +2540,7 @@ get "/api/v1/channels/:ucid" do |env|
json.field "published", video.published.to_unix
json.field "publishedText", "#{recode_date(video.published)} ago"
json.field "lengthSeconds", video.length_seconds
json.field "liveNow", video.live_now
json.field "paid", video.paid
json.field "premium", video.premium
end