mirror of
https://github.com/iptv-org/iptv
synced 2026-10-22 19:18:28 -04:00
Update scripts
This commit is contained in:
1 parent
9902121ac0
commit
9d7cac7bda
21 files changed
+129
-55
No files matched your search
@@ -25,9 +25,7 @@ export class RegionsGenerator implements Generator {
|
||||
}
|
||||
|
||||
async generate(): Promise<void> {
|
||||
const streams = this.streams
|
||||
.sortBy((stream: Stream) => stream.title)
|
||||
.filter((stream: Stream) => stream.isSFW())
|
||||
const streams = this.streams.filter((stream: Stream) => stream.isSFW())
|
||||
|
||||
const streamsGroupedByRegionCode = {}
|
||||
streams.forEach((stream: Stream) => {
|
||||
@@ -43,7 +41,7 @@ export class RegionsGenerator implements Generator {
|
||||
for (const regionCode in streamsGroupedByRegionCode) {
|
||||
const regionStreams = streamsGroupedByRegionCode[regionCode]
|
||||
|
||||
const playlist = new Playlist(regionStreams, { public: true })
|
||||
const playlist = new Playlist(regionStreams, { public: true, raw: false })
|
||||
const filepath = `regions/${regionCode.toLowerCase()}.m3u`
|
||||
await this.storage.save(filepath, playlist.toString())
|
||||
this.logFile.append(
|
||||
|
||||
Reference in new issue
Block a user