Update validate.js

pull/13278/head
freearhey 2 years ago
parent 7fe8a3da7b
commit c18bf41b38

@ -32,6 +32,7 @@ async function main() {
const buffer = {}
const fileLog = []
try {
const playlist = await parser.parsePlaylist(filepath)
for (const item of playlist.items) {
if (item.tvg.id && !api.channels.find({ id: item.tvg.id })) {
@ -66,6 +67,13 @@ async function main() {
})
}
}
} catch (err) {
fileLog.push({
type: 'error',
line: 0,
message: err.message.toLowerCase()
})
}
if (fileLog.length) {
logger.info(`\n${chalk.underline(filepath)}`)

Loading…
Cancel
Save