mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
only first stream would retry now
This commit is contained in:
@@ -180,7 +180,7 @@ export class Stream {
|
|||||||
"range" : `bytes=${this.bytes_count}-${end >= this.content_length ? '' : end}`
|
"range" : `bytes=${this.bytes_count}-${end >= this.content_length ? '' : end}`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(Number(stream.statusCode) >= 400){
|
if(Number(stream.statusCode) >= 400 && this.bytes_count === 0){
|
||||||
this.cleanup()
|
this.cleanup()
|
||||||
await this.retry()
|
await this.retry()
|
||||||
this.loop()
|
this.loop()
|
||||||
|
|||||||
Reference in New Issue
Block a user