diff --git a/libs/ui/components/src/lib/channel-list-container/channel-list-container.component.ts b/libs/ui/components/src/lib/channel-list-container/channel-list-container.component.ts index df2e17fa2..079d9d8cd 100644 --- a/libs/ui/components/src/lib/channel-list-container/channel-list-container.component.ts +++ b/libs/ui/components/src/lib/channel-list-container/channel-list-container.component.ts @@ -130,7 +130,8 @@ export class ChannelListContainerComponent implements OnDestroy { this.selected = channel; this.store.dispatch(PlaylistActions.setActiveChannel({ channel })); - const epgChannelId = channel?.name.trim(); + // Use tvg-id for EPG matching, fallback to channel name if not available + const epgChannelId = channel?.tvg?.id?.trim() || channel?.name.trim(); if (epgChannelId) { this.epgService.getChannelPrograms(epgChannelId); diff --git a/libs/ui/components/src/lib/epg-list/epg-item-description/epg-item-description.component.html b/libs/ui/components/src/lib/epg-list/epg-item-description/epg-item-description.component.html index 13069c30b..162f3f6e4 100644 --- a/libs/ui/components/src/lib/epg-list/epg-item-description/epg-item-description.component.html +++ b/libs/ui/components/src/lib/epg-list/epg-item-description/epg-item-description.component.html @@ -1,42 +1,42 @@
{{ epgProgram.title }}
- @if (epgProgram.title[0].lang) { -{{ epgProgram.title[0]?.value }}
+ @if (epgProgram.title[0].lang) { +{{ epgProgram.title[0].lang }}
+ } + @if (epgProgram?.category?.length > 0) { +{{ epgProgram.category[0]?.value }}
+ } + @if (epgProgram?.desc?.length > 0) { +{{ epgProgram.desc[0]?.value }}
+ } + @if (epgProgram?.rating?.length > 0) { ++ {{ epgProgram.rating[0].value }} [{{ epgProgram.rating[0].system }}] +
} -{{ epgProgram.title[0].lang }}
- } - @if (epgProgram?.category?.length > 0) { -{{ epgProgram.category }}
- } - @if (epgProgram?.desc?.length > 0) { -{{ epgProgram.desc }}
- } - @if (epgProgram?.rating?.length > 0) { -- {{ epgProgram.rating[0].value }} [{{ epgProgram.rating[0].system }}] -
- }{{ program?.title }}
+{{ program?.title?.[0]?.value }}
} @else {