Skip geo-blocked streams when updating status

This commit is contained in:
Aleksandr Statciuk 2021-12-31 11:49:22 +03:00
parent d19ffe0bb0
commit 0809b67b83
4 changed files with 5 additions and 3 deletions

View file

@ -96,7 +96,9 @@ async function updateStreams() {
status = item.status
else if (prevStatus.code === 'geo_blocked') // geo_blocked -> * = geo_blocked
status = item.status
else if(prevStatus.code === 'offline' && status.code === 'online') // offline -> online = not_247
else if (status.code === 'geo_blocked') // * -> geo_blocked = *
status = item.status
else if (prevStatus.code === 'offline' && status.code === 'online') // offline -> online = not_247
status = statuses['not_247']