Skip to content

Invidious is an alternative front-end to YouTube

Add 'liveNow' to /api/v1/channels/videos

Omar Rothfee3b93339e9
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