From bd1647174bdb733cf99ab46b315ac7a114b040df 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 56eb2b72f..427da95b3 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,