mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update update-guides.js
This commit is contained in:
parent
aaf0f76b6b
commit
a3ed268b67
1 changed files with 3 additions and 3 deletions
|
@ -27,6 +27,9 @@ async function generateGuides() {
|
|||
let channels = {}
|
||||
let programs = []
|
||||
for (const item of grouped[key]) {
|
||||
const itemPrograms = await loadProgramsForItem(item)
|
||||
programs = programs.concat(itemPrograms)
|
||||
|
||||
if (channels[item.channel.xmltv_id]) continue
|
||||
|
||||
if (item.error) {
|
||||
|
@ -41,7 +44,6 @@ async function generateGuides() {
|
|||
criticalErrors.push(error)
|
||||
await logError(key, error)
|
||||
} else {
|
||||
const itemPrograms = await loadProgramsForItem(item)
|
||||
if (!itemPrograms.length) {
|
||||
await logError(key, {
|
||||
xmltv_id: item.channel.xmltv_id,
|
||||
|
@ -73,8 +75,6 @@ async function generateGuides() {
|
|||
logo: channel.logo,
|
||||
site: item.channel.site
|
||||
}
|
||||
|
||||
programs = programs.concat(itemPrograms)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue