mirror of
https://github.com/iptv-org/iptv
synced 2026-10-26 21:08:28 -04:00
Update scripts
This commit is contained in:
1 parent
a8d68acd7b
commit
b0a299fad7
2 files changed
+8
-3
No files matched your search
@@ -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()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user