mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 01:50:04 -04:00
Update scripts
This commit is contained in:
parent
51283c736e
commit
94aec6bff5
2 changed files with 8 additions and 3 deletions
|
@ -154,9 +154,14 @@ function drawTable() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onFinish() {
|
function onFinish(error) {
|
||||||
clearInterval(interval)
|
clearInterval(interval)
|
||||||
|
|
||||||
|
if (error) {
|
||||||
|
console.error(error)
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
drawTable()
|
drawTable()
|
||||||
|
|
||||||
console.log(chalk.red(`\n${errors + warnings} problems (${errors} errors, ${warnings} warnings)`))
|
console.log(chalk.red(`\n${errors + warnings} problems (${errors} errors, ${warnings} warnings)`))
|
||||||
|
|
|
@ -18,8 +18,8 @@ export class StreamTester {
|
||||||
return this.checker.checkStream({
|
return this.checker.checkStream({
|
||||||
url: stream.url,
|
url: stream.url,
|
||||||
http: {
|
http: {
|
||||||
referrer: stream.getHttpReferrer(),
|
referrer: stream.getReferrer(),
|
||||||
'user-agent': stream.getHttpUserAgent()
|
'user-agent': stream.getUserAgent()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue