mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-11 01:20: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)
|
||||
|
||||
if (error) {
|
||||
console.error(error)
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
drawTable()
|
||||
|
||||
console.log(chalk.red(`\n${errors + warnings} problems (${errors} errors, ${warnings} warnings)`))
|
||||
|
|
|
@ -18,8 +18,8 @@ export class StreamTester {
|
|||
return this.checker.checkStream({
|
||||
url: stream.url,
|
||||
http: {
|
||||
referrer: stream.getHttpReferrer(),
|
||||
'user-agent': stream.getHttpUserAgent()
|
||||
referrer: stream.getReferrer(),
|
||||
'user-agent': stream.getUserAgent()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue