From 848dd5d571b0e71c4975d257b627e4b5780c37f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Moret?= Date: Thu, 1 Feb 2024 18:33:09 +0000 Subject: [PATCH] correct --- 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 5411c3d94..2ae199b67 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.id === stream.channel) && (stream.categories === "XXX")) + const chNSFW = stream.channel && !channels.first((channel: Channel) => (channel.id === stream.channel) && (channel.isNSFW === true)) if(chNSFW) { log.add({ type: 'error',