From 384f64e37b1c4bcfac8715ee3b94e35d787aca4b Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 22 Jan 2025 21:26:06 +0300 Subject: [PATCH] Update queueCreator.ts --- scripts/core/queueCreator.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/core/queueCreator.ts b/scripts/core/queueCreator.ts index 2816f57f..1a906f9d 100644 --- a/scripts/core/queueCreator.ts +++ b/scripts/core/queueCreator.ts @@ -43,12 +43,14 @@ export class QueueCreator { const config: SiteConfig = await this.configLoader.load(configPath) if (channel.xmltv_id) { - const found: ApiChannel = channels.first( - (_channel: ApiChannel) => _channel.id === channel.xmltv_id - ) - if (found) { - channel.icon = found.logo - channel.name = found.name + if (!channel.icon) { + const found: ApiChannel = channels.first( + (_channel: ApiChannel) => _channel.id === channel.xmltv_id + ) + + if (found) { + channel.icon = found.logo + } } } else { channel.xmltv_id = channel.site_id