mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Remove useless async function.
This commit is contained in:
@@ -89,7 +89,7 @@ export class LiveStreaming{
|
|||||||
if(Number(segment.split('sq/')[1].split('/')[0]) !== this.packet_count){
|
if(Number(segment.split('sq/')[1].split('/')[0]) !== this.packet_count){
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
await new Promise(async (resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
let stream = got.stream(this.base_url + segment)
|
let stream = got.stream(this.base_url + segment)
|
||||||
this.request = stream
|
this.request = stream
|
||||||
stream.on('data', (chunk: any) => this.stream.write(chunk))
|
stream.on('data', (chunk: any) => this.stream.write(chunk))
|
||||||
|
|||||||
Reference in New Issue
Block a user