diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-11-08 16:35:57 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-11-08 16:35:57 -0600 |
| commit | 6ae5d489ec26a23a7e0070967405b0b71278fe05 (patch) | |
| tree | 4d80ec7f214e98f7671c37ab0871140b826367d2 | |
| parent | 0a1c84ada18b9e8bdbfaf27abdc06b48bdd1fda9 (diff) | |
| download | invidious-6ae5d489ec26a23a7e0070967405b0b71278fe05.tar.gz invidious-6ae5d489ec26a23a7e0070967405b0b71278fe05.tar.bz2 invidious-6ae5d489ec26a23a7e0070967405b0b71278fe05.zip | |
Add 'liveNow' to /api/v1/channels
| -rw-r--r-- | src/invidious.cr | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 3602ed70..ab133ef7 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 |
