mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update update-guides.js
This commit is contained in:
@@ -27,6 +27,9 @@ async function generateGuides() {
|
|||||||
let channels = {}
|
let channels = {}
|
||||||
let programs = []
|
let programs = []
|
||||||
for (const item of grouped[key]) {
|
for (const item of grouped[key]) {
|
||||||
|
const itemPrograms = await loadProgramsForItem(item)
|
||||||
|
programs = programs.concat(itemPrograms)
|
||||||
|
|
||||||
if (channels[item.channel.xmltv_id]) continue
|
if (channels[item.channel.xmltv_id]) continue
|
||||||
|
|
||||||
if (item.error) {
|
if (item.error) {
|
||||||
@@ -41,7 +44,6 @@ async function generateGuides() {
|
|||||||
criticalErrors.push(error)
|
criticalErrors.push(error)
|
||||||
await logError(key, error)
|
await logError(key, error)
|
||||||
} else {
|
} else {
|
||||||
const itemPrograms = await loadProgramsForItem(item)
|
|
||||||
if (!itemPrograms.length) {
|
if (!itemPrograms.length) {
|
||||||
await logError(key, {
|
await logError(key, {
|
||||||
xmltv_id: item.channel.xmltv_id,
|
xmltv_id: item.channel.xmltv_id,
|
||||||
@@ -73,8 +75,6 @@ async function generateGuides() {
|
|||||||
logo: channel.logo,
|
logo: channel.logo,
|
||||||
site: item.channel.site
|
site: item.channel.site
|
||||||
}
|
}
|
||||||
|
|
||||||
programs = programs.concat(itemPrograms)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user