Update scripts

This commit is contained in:
freearhey
2025-07-12 23:55:18 +03:00
parent 5ffa2d1dd0
commit ef44a04ae5
3 changed files with 47 additions and 1 deletions

View File

@@ -15,7 +15,8 @@ import {
LanguagesGenerator,
RegionsGenerator,
IndexGenerator,
SourcesGenerator
SourcesGenerator,
RawGenerator
} from '../../generators'
async function main() {
@@ -49,6 +50,9 @@ async function main() {
const totalStreams = streams.count()
logger.info(`found ${totalStreams} streams`)
logger.info('generating raw/...')
await new RawGenerator({ streams, logFile }).generate()
logger.info('filtering streams...')
streams = streams.uniqBy((stream: Stream) =>
stream.hasId() ? stream.getChannelId() + stream.getFeedId() : uniqueId()