From 47c67b306ae584b25ce8de75154d82dc6e2780db Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 4 Apr 2025 20:24:08 +0200 Subject: [PATCH] fix(epg): get epg for channels by name --- .../channel-list-container.component.ts | 2 +- .../channel-list-item.component.ts | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/app/player/components/channel-list-container/channel-list-container.component.ts b/src/app/player/components/channel-list-container/channel-list-container.component.ts index 65d84d4a8..e38d2e4ab 100644 --- a/src/app/player/components/channel-list-container/channel-list-container.component.ts +++ b/src/app/player/components/channel-list-container/channel-list-container.component.ts @@ -133,7 +133,7 @@ export class ChannelListContainerComponent { this.selected = channel; this.store.dispatch(PlaylistActions.setActiveChannel({ channel })); - const epgChannelId = channel?.tvg?.id?.trim() || channel?.name.trim(); + const epgChannelId = channel?.name.trim(); if (epgChannelId) { this.epgService.getChannelPrograms(epgChannelId); diff --git a/src/app/player/components/channel-list-container/channel-list-item/channel-list-item.component.ts b/src/app/player/components/channel-list-container/channel-list-item/channel-list-item.component.ts index d2c85a192..007a95004 100644 --- a/src/app/player/components/channel-list-container/channel-list-item/channel-list-item.component.ts +++ b/src/app/player/components/channel-list-container/channel-list-item/channel-list-item.component.ts @@ -1,11 +1,10 @@ import { DragDropModule } from '@angular/cdk/drag-drop'; -import { CommonModule } from '@angular/common'; +import { NgIf } from '@angular/common'; import { Component, EventEmitter, Input, Output } from '@angular/core'; -import { MatButtonModule } from '@angular/material/button'; -import { MatDividerModule } from '@angular/material/divider'; -import { MatIconModule } from '@angular/material/icon'; +import { MatIconButton } from '@angular/material/button'; +import { MatIcon } from '@angular/material/icon'; import { MatListModule } from '@angular/material/list'; -import { MatTooltipModule } from '@angular/material/tooltip'; +import { MatTooltip } from '@angular/material/tooltip'; import { TranslatePipe } from '@ngx-translate/core'; @Component({ @@ -49,13 +48,12 @@ import { TranslatePipe } from '@ngx-translate/core'; `, imports: [ - CommonModule, DragDropModule, - MatButtonModule, - MatDividerModule, - MatIconModule, + MatIcon, + MatIconButton, MatListModule, - MatTooltipModule, + MatTooltip, + NgIf, TranslatePipe, ], })