From 43c487ca72bfdbf5977e6f873f3505fe5bf6011a Mon Sep 17 00:00:00 2001 From: Anton Lantukh Date: Fri, 12 Jan 2024 14:40:55 +0100 Subject: [PATCH] feat(epg): fix live channel casing --- src/config.ts | 2 +- src/pages/ScreenRouting/MediaScreenRouter.tsx | 2 +- src/utils/media.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.ts b/src/config.ts index c44f024b1..4eb918deb 100644 --- a/src/config.ts +++ b/src/config.ts @@ -42,7 +42,7 @@ export const CONTENT_TYPE = { // Page with a list of channels live: 'live', // Separate channel page - livechannel: 'livechannel', + liveChannel: 'liveChannel', // Static page with markdown page: 'page', // Page with shelves list diff --git a/src/pages/ScreenRouting/MediaScreenRouter.tsx b/src/pages/ScreenRouting/MediaScreenRouter.tsx index cc8c6c4a3..b99942204 100644 --- a/src/pages/ScreenRouting/MediaScreenRouter.tsx +++ b/src/pages/ScreenRouting/MediaScreenRouter.tsx @@ -21,7 +21,7 @@ export const mediaScreenMap = new ScreenMap(); // Register media screens mediaScreenMap.registerByContentType(MediaSeries, CONTENT_TYPE.series); mediaScreenMap.registerByContentType(MediaEpisode, CONTENT_TYPE.episode); -mediaScreenMap.registerByContentType(MediaLiveChannel, CONTENT_TYPE.livechannel); +mediaScreenMap.registerByContentType(MediaLiveChannel, CONTENT_TYPE.liveChannel); mediaScreenMap.registerByContentType(MediaStaticPage, CONTENT_TYPE.page); mediaScreenMap.registerDefault(MediaMovie); diff --git a/src/utils/media.ts b/src/utils/media.ts index b7cffcece..3596bac80 100644 --- a/src/utils/media.ts +++ b/src/utils/media.ts @@ -48,4 +48,4 @@ export const getLegacySeriesPlaylistIdFromEpisodeTags = (item: PlaylistItem | un }; export const isLiveChannel = (item: PlaylistItem): item is RequiredProperties => - item.contentType?.toLowerCase() === CONTENT_TYPE.livechannel && !!item.liveChannelsId; + item.contentType?.toLowerCase() === CONTENT_TYPE.liveChannel && !!item.liveChannelsId;