From 80f0e7bb4b1e717e92e032970ca0af003094b9a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Moret?= Date: Thu, 1 Feb 2024 18:38:10 +0000 Subject: [PATCH] should do the trick. --- scripts/commands/playlist/validate.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/commands/playlist/validate.ts b/scripts/commands/playlist/validate.ts index 56eb2b72f6..427da95b3c 100644 --- a/scripts/commands/playlist/validate.ts +++ b/scripts/commands/playlist/validate.ts @@ -83,7 +83,8 @@ async function main() { }) } - if(stream.isNSFW === true) { + const channel_NSFW = stream.channel && channels.first((channel: Channel) => (channel.id === stream.channel) && (channel.isNSFW === true)) + if(channel_NSFW) { log.add({ type: 'error', line: stream.line,