Merge branch 'master' into enlace-patch

This commit is contained in:
Shadix A 2021-11-16 01:09:30 +02:00 committed by GitHub
commit a5c97e75c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -8,7 +8,7 @@ const file = require('./helpers/file')
const log = require('./helpers/log')
const epg = require('./helpers/epg')
const ignoreStatus = ['Geo-blocked', 'Not 24/7']
const ignoreStatus = ['Geo-blocked']
program
.usage('[OPTIONS]...')
@ -128,11 +128,14 @@ function updateOrigins(channel, requests) {
function updateStatus(channel, status) {
switch (status) {
case 'online':
channel.status = channel.status === 'Offline' ? 'Not 24/7' : null
if (channel.status !== 'Not 24/7')
channel.status = channel.status === 'Offline' ? 'Not 24/7' : null
break
case 'error_403':
channel.status = 'Geo-blocked'
break
case 'offline':
case 'error_403':
channel.status = 'Offline'
if (channel.status !== 'Not 24/7') channel.status = 'Offline'
break
}
}