Returned the value when hit 404

This commit is contained in:
killer069 2021-09-13 11:44:51 +05:30
parent 46cf8e48bd
commit 50dc2da1e3
3 changed files with 4 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "play-dl", "name": "play-dl",
"version": "0.9.7", "version": "0.9.8",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "play-dl", "name": "play-dl",
"version": "0.9.7", "version": "0.9.8",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/node": "^16.9.1" "@types/node": "^16.9.1"

View File

@ -1,6 +1,6 @@
{ {
"name": "play-dl", "name": "play-dl",
"version": "0.9.7", "version": "0.9.8",
"description": "YouTube, SoundCloud, Spotify streaming for discord.js bots", "description": "YouTube, SoundCloud, Spotify streaming for discord.js bots",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",

View File

@ -187,6 +187,7 @@ export class Stream {
this.cleanup() this.cleanup()
await this.retry() await this.retry()
this.loop() this.loop()
return
} }
this.request = stream this.request = stream
stream.pipe(this.stream, { end : false }) stream.pipe(this.stream, { end : false })