mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 11:27:06 -05:00
Update validate.ts
This commit is contained in:
@@ -59,6 +59,13 @@ async function main() {
|
|||||||
totalErrors++
|
totalErrors++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!langs.where('1', channel.lang)) {
|
||||||
|
errors.push({ type: 'wrong_lang', ...channel })
|
||||||
|
totalErrors++
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!channel.xmltv_id) return
|
||||||
|
|
||||||
const foundChannel = channels.first(
|
const foundChannel = channels.first(
|
||||||
(_channel: ApiChannel) => _channel.id === channel.xmltv_id
|
(_channel: ApiChannel) => _channel.id === channel.xmltv_id
|
||||||
)
|
)
|
||||||
@@ -76,11 +83,6 @@ async function main() {
|
|||||||
// errors.push({ type: 'closed', ...channel })
|
// errors.push({ type: 'closed', ...channel })
|
||||||
// totalErrors++
|
// totalErrors++
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (!langs.where('1', channel.lang)) {
|
|
||||||
errors.push({ type: 'wrong_lang', ...channel })
|
|
||||||
totalErrors++
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user