8000 fix: keep updating progress bar speed when download stalls · fent/node-ytdl@27c7b1d · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 27c7b1d

Browse files
committed
fix: keep updating progress bar speed when download stalls
1 parent 0a065cd commit 27c7b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ytdl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ if (opts.infoJson) {
243243
// Update speed every second, in case download is rate limited,
244244
// which is the case with `audioonly` formats.
245245
let iid = setInterval(() => {
246-
bar.update(null, getSpeed());
246+
bar.increment(0, getSpeed());
247247
}, 1000);
248248

249249
readStream.on('end', () => {

0 commit comments

Comments
 (0)
0