Added some reconnection - logic
This commit is contained in:
parent
fbd4d2aaf9
commit
06ebe8e9c7
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "play-dl",
|
"name": "play-dl",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "play-dl",
|
"name": "play-dl",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"got": "^11.8.2"
|
"got": "^11.8.2"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "play-dl",
|
"name": "play-dl",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"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",
|
||||||
|
|||||||
@ -85,5 +85,10 @@ export async function stream(url : string, options? : StreamOptions){
|
|||||||
|
|
||||||
return got.stream(final[0].url, {
|
return got.stream(final[0].url, {
|
||||||
retry : 5,
|
retry : 5,
|
||||||
|
headers: {
|
||||||
|
'Connection': 'keep-alive',
|
||||||
|
'Accept-Encoding': '',
|
||||||
|
'Accept-Language': 'en-US,en;q=0.8'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user