Skip to content

missing filesize_approx and other properties in VideoFormat #71

Description

@Botato300

When you run this code and print each item from formats, you'll notice that many properties are missing from VideoFormat. One of them is filesize_approx, which is often useful when filesize is not available

const info = await ytdlp.getInfoAsync("https://www.youtube.com/shorts/4lMhrCxgXK0");

if (info._type === "video") {
    info.formats.forEach(f => {
        console.log(f); // it prints several properties that are not included in the type, such as 'filesize_approx'
        console.log(f.filesize_approx); // ERROR: Property 'filesize_approx' does not exist on type 'VideoFormat'
    });
}

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