From 50dc2da1e39926e2fd132a26e46303e78dae1b78 Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Mon, 13 Sep 2021 11:44:51 +0530 Subject: [PATCH] Returned the value when hit 404 --- package-lock.json | 4 ++-- package.json | 2 +- play-dl/YouTube/classes/LiveStream.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index a8d36d8..b4cd19b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "play-dl", - "version": "0.9.7", + "version": "0.9.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "play-dl", - "version": "0.9.7", + "version": "0.9.8", "license": "MIT", "devDependencies": { "@types/node": "^16.9.1" diff --git a/package.json b/package.json index 066070c..fb89d18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "play-dl", - "version": "0.9.7", + "version": "0.9.8", "description": "YouTube, SoundCloud, Spotify streaming for discord.js bots", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/play-dl/YouTube/classes/LiveStream.ts b/play-dl/YouTube/classes/LiveStream.ts index abe7a98..0e1f9de 100644 --- a/play-dl/YouTube/classes/LiveStream.ts +++ b/play-dl/YouTube/classes/LiveStream.ts @@ -187,6 +187,7 @@ export class Stream { this.cleanup() await this.retry() this.loop() + return } this.request = stream stream.pipe(this.stream, { end : false })