Skip to content

Commit

Permalink
fix: reconnects don't print video info more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Jul 9, 2019
1 parent bd181f4 commit b2bb3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ytdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ if (opts.infoJson) {
});
});

readStream.on('response', (res) => {
readStream.once('response', (res) => {
if (!output || isPlaylist) { return; }

// Print information about the format we're downloading.
Expand Down

0 comments on commit b2bb3be

Please sign in to comment.