From 5c010f2943e8e47a2f275b9c540eb5b45f6bf37c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Moret?= Date: Wed, 31 Jan 2024 10:28:13 +0000 Subject: [PATCH] Verify channel ID. --- scripts/commands/playlist/validate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/commands/playlist/validate.ts b/scripts/commands/playlist/validate.ts index 5a9426149..cf017e480 100644 --- a/scripts/commands/playlist/validate.ts +++ b/scripts/commands/playlist/validate.ts @@ -83,7 +83,7 @@ async function main() { }) } - const chNSFW = stream.channel && !channels.first((channel: Channel) => channel.categories === "XXX") + const chNSFW = stream.channel && !channels.first((channel: Channel) => (channel.id === stream.channel) && (channel.categories === "XXX")) if(chNSFW) { log.add({ type: 'error',