Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Live videos are not marked as live #60

@radston12

Description

@radston12

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"
            }
        }
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions