summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-11-08 16:17:47 -0600
committerOmar Roth <omarroth@hotmail.com>2018-11-08 16:17:47 -0600
commitfee3b93339e9d6cc2d268a5b5c34cefab795c593 (patch)
treecc319d242e1bc3a8acbebc5c442028dde05953d8 /src
parent31a9abc03a03ef05ce30cd89291e36d1d4a18749 (diff)
downloadinvidious-fee3b93339e9d6cc2d268a5b5c34cefab795c593.tar.gz
invidious-fee3b93339e9d6cc2d268a5b5c34cefab795c593.tar.bz2
invidious-fee3b93339e9d6cc2d268a5b5c34cefab795c593.zip
Add 'liveNow' to /api/v1/channels/videos
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index cb8f011f..199ad602 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -2595,6 +2595,7 @@ end
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