show how long ago stream started

This commit is contained in:
Andrew Zhao
2021-02-24 23:06:50 -05:00
parent cbc7603248
commit 295e5c9731
2 changed files with 6 additions and 1 deletions

View File

@@ -534,7 +534,8 @@ struct Video
end
def live_now
info["videoDetails"]["isLiveContent"]?.try &.as_bool || false
info["microformat"]?.try &.["playerMicroformatRenderer"]?
.try &.["liveBroadcastDetails"]?.try &.["isLiveNow"]?.try &.as_bool || false
end
def is_listed