When you search for a live video using Youtube.search the video does not get marked as live!
This is because
|
static parseVideo(data?: any): Video { |
doesn't check if the video is live!
It could be checked if a badge (data.videoRenderer.badges) with the name "liveBadge" exists!
Since data.videoRenderer.badges for a live video looks as following:
"badges": [
{
"liveBadge": {
"label": {
"simpleText": "Live now"
}
}
}
]