diff --git a/package-lock.json b/package-lock.json index fe39312..b41e031 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "play-dl", - "version": "0.8.2", + "version": "0.8.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "play-dl", - "version": "0.8.2", + "version": "0.8.3", "license": "MIT", "dependencies": { "got": "^11.8.2" diff --git a/package.json b/package.json index 6309751..8998072 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "play-dl", - "version": "0.8.2", + "version": "0.8.3", "description": "YouTube, SoundCloud, Spotify streaming for discord.js bots", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/play-dl/YouTube/stream.ts b/play-dl/YouTube/stream.ts index 2ccbaa4..2423462 100644 --- a/play-dl/YouTube/stream.ts +++ b/play-dl/YouTube/stream.ts @@ -43,14 +43,14 @@ export async function stream(url : string, cookie? : string): Promise= 400){ + }, + retry : 0 + }).catch(async () => { return await stream(info.video_details.url) - } + }) let audioFormat = parseAudioFormats(info.format) let opusFormats = filterFormat(audioFormat, "opus") @@ -79,14 +79,14 @@ export async function stream_from_info(info : InfoData): Promise= 400){ + }, + retry : 0 + }).catch(async () => { return await stream(info.video_details.url) - } + }) let audioFormat = parseAudioFormats(info.format) let opusFormats = filterFormat(audioFormat, "opus")