mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Update status.js
This commit is contained in:
parent
3b52298371
commit
efeb7894cc
1 changed files with 0 additions and 14 deletions
|
@ -7,19 +7,5 @@ module.exports = function ({ title, status = {} }) {
|
|||
return Object.values(statuses).find(s => s.label === label) || statuses['online']
|
||||
}
|
||||
|
||||
if (status) {
|
||||
switch (status.code) {
|
||||
case 'not_247':
|
||||
case 'geo_blocked':
|
||||
return status
|
||||
case 'offline':
|
||||
return statuses['not_247']
|
||||
case 'timeout':
|
||||
return statuses['timeout']
|
||||
default:
|
||||
return statuses['online']
|
||||
}
|
||||
}
|
||||
|
||||
return status
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue