From b9ea6e36c81912cd39af977cda441d7d85cf3d69 Mon Sep 17 00:00:00 2001 From: LuanRT Date: Thu, 14 Oct 2021 19:13:22 -0300 Subject: [PATCH] fix: streams with both audio and video should always emit 'end' --- lib/Innertube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Innertube.js b/lib/Innertube.js index 0bfacf7b..3c0acf1c 100644 --- a/lib/Innertube.js +++ b/lib/Innertube.js @@ -299,7 +299,7 @@ class Innertube extends EventEmitter { } }); - response.data.pipe(stream, true); + response.data.pipe(stream, { end: true }); } else { const chunk_size = 1048576 * 10; // 10MB