diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index 42ecce38..42de0cec 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -249,6 +249,10 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any live_now = microformat.dig?("liveBroadcastDetails", "isLiveNow") .try &.as_bool + if live_now.nil? + live_now = video_primary_renderer + .try &.dig?("viewCount", "videoViewCountRenderer", "isLive").try &.as_bool + end live_now ||= video_details.dig?("isLive").try &.as_bool || false post_live_dvr = video_details.dig?("isPostLiveDvr")