discord-player-youtubei
Advanced tools
Comparing version 1.2.6-alpha.3 to 1.2.6-alpha.4
@@ -80,2 +80,3 @@ "use strict"; | ||
for await (const chunk of import_youtubei.Utils.streamToIterable(readStream)) { | ||
if (readable.destroyed) continue; | ||
const shouldWrite = readable.write(chunk); | ||
@@ -85,2 +86,6 @@ if (!shouldWrite) await new Promise((res) => readable.on("drain", () => res(null))); | ||
})(); | ||
readable._destroy = () => { | ||
readable.destroyed = true; | ||
readable.destroy(); | ||
}; | ||
return readable; | ||
@@ -87,0 +92,0 @@ } |
{ | ||
"name": "discord-player-youtubei", | ||
"version": "1.2.6-alpha.3", | ||
"version": "1.2.6-alpha.4", | ||
"description": "An unofficial package to test the use of youtubei in discord-player v6.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -78,2 +78,3 @@ # Discord Player YouTubei | ||
| useClient | [InnerTubeClient](https://github.com/LuanRT/YouTube.js/blob/main/src/Innertube.ts#L49) | Which client to get the stream from | false | | ||
| highWaterMark | number | How many bytes the stream can hold. The more bytes allocated, the smoother the stream at the cost of more memory usage | false | | ||
@@ -80,0 +81,0 @@ #### YoutubeiOptions |
41741
702
126