Merge pull request #15733 from iptv-org/apply-nonsfw-readme
This commit is contained in:
@@ -82,6 +82,16 @@ async function main() {
|
||||
message: `"${stream.name}" is on the blocklist due to claims of copyright holders or NSFW content (${blocked.ref})`
|
||||
})
|
||||
}
|
||||
|
||||
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,
|
||||
message: `Since January 30th, 2024, NSFW channels are no longer allowed in our playlists. Please see https://github.com/iptv-org/iptv/issues/15723 for further information.`
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
if (log.notEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user