Update validate.ts

This commit is contained in:
freearhey 2023-11-15 10:06:03 +03:00
parent e9fdc45f91
commit 1abbb1c22f

View file

@ -51,7 +51,7 @@ async function main() {
const bufferBySiteId = new Dictionary()
const errors: ValidationError[] = []
parsedChannels.forEach((channel: Channel) => {
const bufferId: string = `${channel.xmltv_id}:${channel.lang}`
const bufferId: string = `${channel.xmltv_id}:${channel.lang}:${channel.site_id}`
if (bufferById.missing(bufferId)) {
bufferById.set(bufferId, true)
} else {