question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

where is the bytestotal

See original GitHub issue

i must be missing something, but i need the bytestotal of the video i want to download (for progress as you might have guessed) and i cannot find anything in the info objects i am getting. ( via getInfo() ) besides that: the info-event never gets fired. simplified code would be

var stream = fs.createWriteStream('video' + '.' + type));
stream.on('drain', function(){
            trace('drain')
        });
        stream.on('error', function(){
            trace('error')
        });
        stream.on('info', function(){
            trace('info')
        });
        stream.on('end', function(){
            trace('end')
        });
        stream.on('finish', function(){
            trace('fin')
        });
        setInterval(function(){
            trace(stream);
        }, 5000);
        ytdl(url, options).pipe(stream);

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fentcommented, Oct 8, 2014

you can see ytdl use it for its progress bar here

https://github.com/fent/node-ytdl/blob/master/bin/ytdl.js#L244

0reactions
kostasxcommented, Aug 9, 2016

I’ve just wrote a small script that uses the progress module to show the download progress. I hope you like the song 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bytes Total (BytesTotal) - Documentation for BMC PATROL for ...
Bytes Total (BytesTotal). Reports toal number of bytes per second (Linux). PATROL properties. Attribute. Default value. Application class.
Read more >
QStorageInfo Class | Qt Core 6.4.1
qint64 QStorageInfo::bytesTotal() const. Returns the total volume size in bytes. Returns -1 if QStorageInfo object is not valid.
Read more >
Physical memory bytes total reporting *MANY* different values
Hi there — I'm running a query for a simple hw inventory. I am using the field Computer.Memory.Physical.BytesTotal The results seem to be...
Read more >
Solved: Re: Why does URLLoader.bytesTotal return a differe ...
Weirdly, I've tried to upload it to a different server that I have (.com instead of .nc) and, the size is still different,...
Read more >
Thread: [RESOLVED] Winsock BytesTotal - VBForums
Could someone please inform us of the purpose of BytesTotal when receiving data with winsock, not that I'm having any problems when ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found