mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 02:47:33 -05:00
Update update-database.js
This commit is contained in:
@@ -202,12 +202,12 @@ function parseResolution(streams) {
|
|||||||
|
|
||||||
function parseStatus(error, prevStatus) {
|
function parseStatus(error, prevStatus) {
|
||||||
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']
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user