mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
search validation added
This commit is contained in:
@@ -112,7 +112,7 @@ export class LiveStreaming {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
this.timer.reuse();
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ export class Stream {
|
||||
this.loop();
|
||||
}, 265);
|
||||
this.stream.on('close', () => {
|
||||
this.timer.destroy()
|
||||
this.timer.destroy();
|
||||
this.cleanup();
|
||||
});
|
||||
this.loop();
|
||||
@@ -178,7 +178,7 @@ export class Stream {
|
||||
|
||||
private async loop() {
|
||||
if (this.stream.destroyed) {
|
||||
this.timer.destroy()
|
||||
this.timer.destroy();
|
||||
this.cleanup();
|
||||
return;
|
||||
}
|
||||
@@ -198,7 +198,7 @@ export class Stream {
|
||||
if (Number(stream.statusCode) >= 400) {
|
||||
this.cleanup();
|
||||
await this.retry();
|
||||
this.timer.reuse()
|
||||
this.timer.reuse();
|
||||
this.loop();
|
||||
return;
|
||||
}
|
||||
@@ -208,7 +208,7 @@ export class Stream {
|
||||
stream.once('error', async (err) => {
|
||||
this.cleanup();
|
||||
await this.retry();
|
||||
this.timer.reuse()
|
||||
this.timer.reuse();
|
||||
this.loop();
|
||||
});
|
||||
|
||||
@@ -219,7 +219,7 @@ export class Stream {
|
||||
stream.on('end', () => {
|
||||
if (end >= this.content_length) {
|
||||
this.timer.destroy();
|
||||
this.cleanup()
|
||||
this.cleanup();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user