From 2cbb0179ae64cc608c837fc5666b3d6d094ca45c Mon Sep 17 00:00:00 2001 From: Daniel Wykerd Date: Thu, 16 Jun 2022 02:25:23 +0200 Subject: [PATCH] fix: Innertube.download --- lib/Innertube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Innertube.js b/lib/Innertube.js index 0ba588c2..a8b7fe56 100644 --- a/lib/Innertube.js +++ b/lib/Innertube.js @@ -445,7 +445,7 @@ class Innertube { const info = await this.getInfo(video_id); underlying_stream = info.download(options); underlying_stream.pipe(stream); - }) + })(); stream.cancel = () => { underlying_stream?.cancel();