fix: Innertube.download

This commit is contained in:
Daniel Wykerd
2022-06-16 02:25:23 +02:00
committed by LuanRT
parent b594dad510
commit 2cbb0179ae

View File

@@ -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();