mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 10:26:48 -05:00
To test.
This commit is contained in:
@@ -65,8 +65,6 @@ async function main() {
|
||||
}).generate()
|
||||
logger.info('generating index.m3u...')
|
||||
await new IndexGenerator({ streams, logger: generatorsLogger }).generate()
|
||||
logger.info('generating index.nsfw.m3u...')
|
||||
await new IndexNsfwGenerator({ streams, logger: generatorsLogger }).generate()
|
||||
logger.info('generating index.category.m3u...')
|
||||
await new IndexCategoryGenerator({ streams, logger: generatorsLogger }).generate()
|
||||
logger.info('generating index.country.m3u...')
|
||||
|
||||
@@ -82,6 +82,16 @@ async function main() {
|
||||
message: `"${stream.name}" is on the blocklist due to claims of copyright holders (${blocked.ref})`
|
||||
})
|
||||
}
|
||||
|
||||
const chNSFW = stream.channel && !channels.first((channel: Channel) => channel.categories === "XXX")
|
||||
if(chNSFW) {
|
||||
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