mirror of
https://github.com/iptv-org/iptv.git
synced 2024-09-05 00:01:35 +02:00
Update index.js
This commit is contained in:
parent
f892a44030
commit
644bec9f93
@ -44,14 +44,10 @@ async function test() {
|
||||
await new Promise(resolve => {
|
||||
|
||||
const timeout = setTimeout(() => {
|
||||
stats.failures++
|
||||
|
||||
writeToLog(country.url, `Timeout exceeded`, item.url)
|
||||
|
||||
resolve()
|
||||
}, config.timeout * 1000)
|
||||
|
||||
ffmpeg(item.url, { timeout: config.timeout }).ffprobe((err) => {
|
||||
ffmpeg(item.url).ffprobe((err) => {
|
||||
|
||||
if(err) {
|
||||
const message = parseMessage(err, item.url)
|
||||
@ -59,7 +55,6 @@ async function test() {
|
||||
stats.failures++
|
||||
|
||||
writeToLog(country.url, message, item.url)
|
||||
|
||||
}
|
||||
|
||||
clearTimeout(timeout)
|
||||
|
Loading…
Reference in New Issue
Block a user