mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 02:20:03 -04:00
Merge branch 'master' into fix-update-database-3
This commit is contained in:
commit
eb1b263481
1 changed files with 3 additions and 3 deletions
|
@ -215,12 +215,12 @@ function parseStatus(error, prevStatus) {
|
||||||
if(!error && prevStatus.code === 'offline') return statuses['not_247']
|
if(!error && prevStatus.code === 'offline') return statuses['not_247']
|
||||||
if(!error) return statuses['online']
|
if(!error) return statuses['online']
|
||||||
if (error) {
|
if (error) {
|
||||||
if (error.includes('timed out')) {
|
if (['not_247', 'geo_blocked'].includes(prevStatus.code)) {
|
||||||
|
return prevStatus
|
||||||
|
} else if (error.includes('timed out')) {
|
||||||
return statuses['timeout']
|
return statuses['timeout']
|
||||||
} else if (error.includes('403')) {
|
} else if (error.includes('403')) {
|
||||||
return statuses['geo_blocked']
|
return statuses['geo_blocked']
|
||||||
} else if (['not_247', 'geo_blocked'].includes(prevStatus.code)) {
|
|
||||||
return prevStatus
|
|
||||||
}
|
}
|
||||||
return statuses['offline']
|
return statuses['offline']
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue