discord-player-youtubei
Advanced tools
Comparing version
@@ -151,3 +151,3 @@ "use strict"; | ||
const readable = chunks.body; | ||
if (!readable || chunks.ok) | ||
if (!readable || !chunks.ok) | ||
throw new Error(`Downloading of ${url} failed.`); | ||
@@ -154,0 +154,0 @@ for await (const chunk of import_youtubei2.Utils.streamToIterable(readable)) { |
{ | ||
"name": "discord-player-youtubei", | ||
"version": "1.3.3-beta.1", | ||
"version": "1.3.3-beta.2", | ||
"description": "An unofficial package to test the use of youtubei in discord-player v6.", | ||
@@ -26,3 +26,4 @@ "main": "dist/index.js", | ||
"prepare": "npm run build", | ||
"format": "prettier --write \"{lib,examples,bin}/**/*.{js,ts}\"" | ||
"format": "prettier --write \"{lib,examples,bin}/**/*.{js,ts}\"", | ||
"publish": "npm publish --access public" | ||
}, | ||
@@ -29,0 +30,0 @@ "bin": "./bin/index.js", |
47729
0.1%