Parse if video is post live dvr and include it in API

This commit is contained in:
ChunkyProgrammer
2024-04-07 10:26:33 -04:00
parent 08390acd0c
commit bfd9c9876e
3 changed files with 9 additions and 0 deletions

View File

@@ -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")