mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
0.9.6
This commit is contained in:
@@ -129,7 +129,7 @@ export class Stream {
|
||||
this.bytes_count = 0
|
||||
this.video_url = video_url
|
||||
this.cookie = cookie
|
||||
this.timer = setInterval(() => {
|
||||
this.timer = setTimeout(() => {
|
||||
this.retry()
|
||||
}, 7200 * 1000)
|
||||
this.per_sec_bytes = Math.ceil(contentLength / duration)
|
||||
@@ -157,6 +157,9 @@ export class Stream {
|
||||
private async retry(){
|
||||
let info = await video_info(this.video_url, this.cookie)
|
||||
this.url = info.format[info.format.length - 1].url
|
||||
this.timer = setTimeout(() => {
|
||||
this.retry()
|
||||
}, 7200 * 1000)
|
||||
}
|
||||
|
||||
private cleanup(){
|
||||
|
||||
Reference in New Issue
Block a user