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
1a2237b0a1
commit
4c8ebc1dfc
1 changed files with 7 additions and 2 deletions
|
@ -65,10 +65,15 @@ async function generateGuides() {
|
||||||
const output = grabber.convertToXMLTV({ channels, programs })
|
const output = grabber.convertToXMLTV({ channels, programs })
|
||||||
await file.create(filepath, output)
|
await file.create(filepath, output)
|
||||||
|
|
||||||
|
let status = 0
|
||||||
|
if (errors.length > 0 || !channels.length) {
|
||||||
|
status = 1
|
||||||
|
}
|
||||||
|
|
||||||
await logGuide({
|
await logGuide({
|
||||||
group: key,
|
group: key,
|
||||||
count: items.length,
|
count: channels.length,
|
||||||
status: errors.length > 0 ? 1 : 0
|
status
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue