From dec958eb847d36b4a68ce41161859ab58aa5d107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Moret?= Date: Thu, 1 Feb 2024 18:35:29 +0000 Subject: [PATCH] not quite sure... --- scripts/commands/playlist/validate.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/commands/playlist/validate.ts b/scripts/commands/playlist/validate.ts index 2ae199b67..56eb2b72f 100644 --- a/scripts/commands/playlist/validate.ts +++ b/scripts/commands/playlist/validate.ts @@ -83,8 +83,7 @@ async function main() { }) } - const chNSFW = stream.channel && !channels.first((channel: Channel) => (channel.id === stream.channel) && (channel.isNSFW === true)) - if(chNSFW) { + if(stream.isNSFW === true) { log.add({ type: 'error', line: stream.line,