Update update-guides.js

This commit is contained in:
Aleksandr Statciuk 2022-01-31 04:28:59 +03:00
parent 1a2237b0a1
commit 4c8ebc1dfc

View file

@ -65,10 +65,15 @@ async function generateGuides() {
const output = grabber.convertToXMLTV({ channels, programs })
await file.create(filepath, output)
let status = 0
if (errors.length > 0 || !channels.length) {
status = 1
}
await logGuide({
group: key,
count: items.length,
status: errors.length > 0 ? 1 : 0
count: channels.length,
status
})
}