From 6ae5d489ec26a23a7e0070967405b0b71278fe05 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 8 Nov 2018 16:35:57 -0600 Subject: [PATCH] Add 'liveNow' to /api/v1/channels --- src/invidious.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invidious.cr b/src/invidious.cr index 3602ed70b..ab133ef75 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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