Check that channel epg exists in buffer
This commit is contained in:
parent
08663a1799
commit
689dfab057
@ -15,8 +15,8 @@ async function main() {
|
|||||||
let countries = playlist.items
|
let countries = playlist.items
|
||||||
if(debug) {
|
if(debug) {
|
||||||
console.log('Debug mode is turn on')
|
console.log('Debug mode is turn on')
|
||||||
countries = countries.slice(0, 1)
|
// countries = countries.slice(0, 1)
|
||||||
// countries = [{ url: 'channels/ru.m3u' }]
|
// countries = [{ url: 'channels/au.m3u' }]
|
||||||
}
|
}
|
||||||
|
|
||||||
for(let country of countries) {
|
for(let country of countries) {
|
||||||
@ -49,7 +49,7 @@ async function main() {
|
|||||||
for(let channel of channels) {
|
for(let channel of channels) {
|
||||||
let channelId = channel.id
|
let channelId = channel.id
|
||||||
if(!channelId) continue
|
if(!channelId) continue
|
||||||
let c = buffer[epgUrl].channels[channelId]
|
let c = buffer[epgUrl] ? buffer[epgUrl].channels[channelId] : null
|
||||||
if(!c) continue
|
if(!c) continue
|
||||||
let updated = false
|
let updated = false
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user