mirror of
https://github.com/iptv-org/iptv
synced 2026-11-21 16:45:33 -05:00
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:
4 files changed
+6
-6
No files matched your search
@@ -25,7 +25,7 @@ export class CategoriesGenerator implements Generator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async generate() {
|
async generate() {
|
||||||
const streams = this.streams
|
const streams = this.streams.filter((stream: Stream) => stream.isSFW())
|
||||||
|
|
||||||
this.categories.forEach(async (category: sdk.Models.Category) => {
|
this.categories.forEach(async (category: sdk.Models.Category) => {
|
||||||
const categoryStreams = streams
|
const categoryStreams = streams
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ export class SourcesGenerator implements Generator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async generate() {
|
async generate() {
|
||||||
const files: Dictionary<Stream[]> = this.streams.groupBy((stream: Stream) =>
|
const files: Dictionary<Stream[]> = this.streams
|
||||||
stream.getFilename()
|
.filter((stream: Stream) => stream.isSFW())
|
||||||
)
|
.groupBy((stream: Stream) => stream.getFilename())
|
||||||
|
|
||||||
for (const filename of files.keys()) {
|
for (const filename of files.keys()) {
|
||||||
if (!filename) continue
|
if (!filename) continue
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#EXTM3U
|
#EXTM3U
|
||||||
#EXTINF:-1 tvg-id="LDPRTV.ru" tvg-logo="https://iptvx.one/icn/ldpr-tv.png" group-title="General",ЛДПР ТВ (1080p)
|
#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
|
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
|
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]
|
#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
|
#EXTVLCOPT:http-referrer=http://imn.iq
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#EXTM3U
|
#EXTM3U
|
||||||
#EXTINF:-1 tvg-id="LDPRTV.ru",ЛДПР ТВ (1080p)
|
#EXTINF:-1 tvg-id="LDPRTV.ru",ЛДПР ТВ (1080p)
|
||||||
http://46.46.143.222:1935/live/mp4:ldpr.stream/blocked.m3u8
|
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
|
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]
|
#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
|
#EXTVLCOPT:http-referrer=http://imn.iq
|
||||||
|
|||||||
Reference in new issue
Block a user