fent / fent/node-ytdl-core

how can i get the content length before piping

Open
#1,145 2 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
JavaScript
Stars
4.7k
Forks
852
PR merge metrics
No merged PRs in 30d

Description

i want to get the length of the stream file before piping it to the writable stream.
`let video = ytdl(url,{filter: 'videoonly', quality:itag})`
i want to get the exact content length of the video that is selected by this code, the length we will get when we use 'progess' event.
`video.on('progess', (_, _, totalsize)=> console.log(totalsize))`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.