mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-08 16:01:19 +00:00
Parse if video is post live dvr and include it in API
This commit is contained in:
@@ -82,6 +82,10 @@ struct Video
|
||||
return (self.video_type == VideoType::Livestream)
|
||||
end
|
||||
|
||||
def post_live_dvr
|
||||
return info["isPostLiveDvr"].as_bool
|
||||
end
|
||||
|
||||
def premiere_timestamp : Time?
|
||||
info
|
||||
.dig?("microformat", "playerMicroformatRenderer", "liveBroadcastDetails", "startTimestamp")
|
||||
|
||||
Reference in New Issue
Block a user