mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 02:20:03 -04:00
Delete statuses.json
This commit is contained in:
parent
7d666b5fec
commit
8238e802d8
4 changed files with 1 additions and 41 deletions
|
@ -1,11 +0,0 @@
|
|||
const statuses = require('../../data/statuses')
|
||||
|
||||
module.exports = function ({ title, status = {} }) {
|
||||
if (title) {
|
||||
const [_, label] = title.match(/\[(.*)\]/i) || [null, null]
|
||||
|
||||
return Object.values(statuses).find(s => s.label === label) || statuses['online']
|
||||
}
|
||||
|
||||
return status
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue