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 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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue