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,