Retry FIX

This commit is contained in:
killer069 2021-08-17 11:39:04 +05:30
parent b91c83c9f9
commit fbd4d2aaf9
3 changed files with 6 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "play-dl", "name": "play-dl",
"version": "0.1.0", "version": "0.1.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "play-dl", "name": "play-dl",
"version": "0.1.0", "version": "0.1.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"got": "^11.8.2" "got": "^11.8.2"

View File

@ -1,6 +1,6 @@
{ {
"name": "play-dl", "name": "play-dl",
"version": "0.1.0", "version": "0.1.1",
"description": "YouTube, SoundCloud, Spotify downloader", "description": "YouTube, SoundCloud, Spotify downloader",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",

View File

@ -83,5 +83,7 @@ export async function stream(url : string, options? : StreamOptions){
final.push(info.format[info.format.length - 1]) final.push(info.format[info.format.length - 1])
} }
return got.stream(final[0].url) return got.stream(final[0].url, {
retry : 5,
})
} }