From 0ded917ccc5e8317a3046bca4309d6f61c45b469 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 16 Aug 2026 22:18:23 +0300 Subject: [PATCH] Update test.ts --- scripts/commands/playlist/test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/commands/playlist/test.ts b/scripts/commands/playlist/test.ts index 0f5629ec6a..447455b7fb 100644 --- a/scripts/commands/playlist/test.ts +++ b/scripts/commands/playlist/test.ts @@ -5,8 +5,8 @@ import { Logger, Collection } from '@freearhey/core' import { program, OptionValues } from 'commander' import { Storage } from '@freearhey/storage-js' import { Playlist, Stream } from '../../models' +import { loadData, data } from '../../api' import { truncate } from '../../utils' -import { loadData } from '../../api' import { eachLimit } from 'async' import dns from 'node:dns' import chalk from 'chalk' @@ -70,6 +70,10 @@ async function main() { }) const files = program.args.length ? program.args : await rootStorage.list(`${STREAMS_DIR}/*.m3u`) streams = await parser.parse(files) + streams = streams.map((stream: Stream) => { + stream.setGuides(data.guidesGroupedByStreamId.get(stream.getId())) + return stream + }) logger.info(`found ${streams.count()} streams`) if (streams.count() > LIVE_UPDATE_MAX_STREAMS) isLiveUpdateEnabled = false