mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
Added some reconnection - logic
This commit is contained in:
@@ -85,5 +85,10 @@ export async function stream(url : string, options? : StreamOptions){
|
||||
|
||||
return got.stream(final[0].url, {
|
||||
retry : 5,
|
||||
headers: {
|
||||
'Connection': 'keep-alive',
|
||||
'Accept-Encoding': '',
|
||||
'Accept-Language': 'en-US,en;q=0.8'
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user