Merge pull request #56361 from L4XB/fix/no-nsfw-in-categories-and-sources

fix: leave NSFW channels out of the categories and sources playlists
This commit is contained in:
Pecaquito
2026-10-25 21:18:35 -04:00
committed by GitHub
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export class CategoriesGenerator implements Generator {
}
async generate() {
const streams = this.streams
const streams = this.streams.filter((stream: Stream) => stream.isSFW())
this.categories.forEach(async (category: sdk.Models.Category) => {
const categoryStreams = streams
+3 -3
View File
@@ -21,9 +21,9 @@ export class SourcesGenerator implements Generator {
}
async generate() {
const files: Dictionary<Stream[]> = this.streams.groupBy((stream: Stream) =>
stream.getFilename()
)
const files: Dictionary<Stream[]> = this.streams
.filter((stream: Stream) => stream.isSFW())
.groupBy((stream: Stream) => stream.getFilename())
for (const filename of files.keys()) {
if (!filename) continue
@@ -1,7 +1,7 @@
#EXTM3U
#EXTINF:-1 tvg-id="LDPRTV.ru" tvg-logo="https://iptvx.one/icn/ldpr-tv.png" group-title="General",ЛДПР ТВ (1080p)
http://46.46.143.222:1935/live/mp4:ldpr.stream/blocked.m3u8
#EXTINF:-1 tvg-id="VisitXTV.nl" tvg-logo="https://i.imgur.com/RJ9wbNF.jpg" group-title="XXX",Visit-X TV
#EXTINF:-1 tvg-id="VisitXTV.nl@SD" tvg-logo="https://i.imgur.com/RJ9wbNF.jpg" group-title="XXX",Visit-X TV
https://stream.visit-x.tv/vxtv/ngrp:live_all/30fps.m3u8
#EXTINF:-1 tvg-id="" tvg-logo="" http-referrer="http://imn.iq" http-user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" group-title="Undefined",Andorra TV (720p) [Not 24/7]
#EXTVLCOPT:http-referrer=http://imn.iq
@@ -1,7 +1,7 @@
#EXTM3U
#EXTINF:-1 tvg-id="LDPRTV.ru",ЛДПР ТВ (1080p)
http://46.46.143.222:1935/live/mp4:ldpr.stream/blocked.m3u8
#EXTINF:-1 tvg-id="VisitXTV.nl",Visit-X TV
#EXTINF:-1 tvg-id="VisitXTV.nl@SD",Visit-X TV
https://stream.visit-x.tv/vxtv/ngrp:live_all/30fps.m3u8
#EXTINF:-1 tvg-id="" user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",Andorra TV (720p) [Not 24/7]
#EXTVLCOPT:http-referrer=http://imn.iq