From fbd4d2aaf997aca0e4a6e32d225aead063657050 Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Tue, 17 Aug 2021 11:39:04 +0530 Subject: [PATCH] Retry FIX --- package-lock.json | 4 ++-- package.json | 2 +- play-dl/YouTube/stream.ts | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 67dbce5..4b4e244 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "play-dl", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "play-dl", - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "dependencies": { "got": "^11.8.2" diff --git a/package.json b/package.json index 26aa97c..6769990 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "play-dl", - "version": "0.1.0", + "version": "0.1.1", "description": "YouTube, SoundCloud, Spotify downloader", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/play-dl/YouTube/stream.ts b/play-dl/YouTube/stream.ts index 7150527..5aa38de 100644 --- a/play-dl/YouTube/stream.ts +++ b/play-dl/YouTube/stream.ts @@ -83,5 +83,7 @@ export async function stream(url : string, options? : StreamOptions){ final.push(info.format[info.format.length - 1]) } - return got.stream(final[0].url) + return got.stream(final[0].url, { + retry : 5, + }) } \ No newline at end of file