Skip to content

Commit

Permalink
Merge pull request #15733 from iptv-org/apply-nonsfw-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Alstruit authored Feb 1, 2024
2 parents 1d75617 + bd16471 commit 049664f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
1 change: 0 additions & 1 deletion .readme/supported-categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@
| Sports | Programming is sports |
| Travel | Programming is travel related |
| Weather | Programming is focused on weather |
| XXX | Programming is adult oriented and x-rated |
10 changes: 2 additions & 8 deletions .readme/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,16 @@ Simply insert one of the links below into [any video player](https://github.com/

## Playlists

There are several versions of playlists that differ in the way they are grouped.
There are several versions of playlists that differ in the way they are grouped. As of January 30th, 2024, we have stopped distributing NSFW channels. For more information, please look at [this issue](https://github.com/iptv-org/iptv/issues/15723).

### Main playlist

Playlist includes all known channels except adult channels.
This playlist includes all known channels available in this repository.

```
https://iptv-org.github.io/iptv/index.m3u
```

And here is the full version:

```
https://iptv-org.github.io/iptv/index.nsfw.m3u
```

### Grouped by category

<details>
Expand Down
2 changes: 0 additions & 2 deletions scripts/commands/playlist/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...')
Expand Down
10 changes: 10 additions & 0 deletions scripts/commands/playlist/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 049664f

Please sign in to comment.