From 3821099e8f45c48de4731ed93524ec9e246741af Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 15 Nov 2023 10:26:46 +0300 Subject: [PATCH] Update validate.ts --- scripts/commands/channels/validate.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/commands/channels/validate.ts b/scripts/commands/channels/validate.ts index 3953e105..0bf2d6d4 100644 --- a/scripts/commands/channels/validate.ts +++ b/scripts/commands/channels/validate.ts @@ -51,14 +51,6 @@ async function main() { const bufferBySiteId = new Dictionary() const errors: ValidationError[] = [] parsedChannels.forEach((channel: Channel) => { - const bufferId: string = `${channel.xmltv_id}:${channel.lang}:${channel.site_id}` - if (bufferById.missing(bufferId)) { - bufferById.set(bufferId, true) - } else { - errors.push({ type: 'duplicate', ...channel }) - totalErrors++ - } - const bufferSiteId: string = `${channel.site_id}:${channel.lang}` if (bufferBySiteId.missing(bufferSiteId)) { bufferBySiteId.set(bufferSiteId, true)