From 44bde8f41e3c282ba2f73872528e97bd0169e122 Mon Sep 17 00:00:00 2001 From: Alex Kim Date: Mon, 9 Dec 2024 04:12:13 +1100 Subject: [PATCH] Fixed more bugs --- .../video-player/controls/EpisodeList.tsx | 114 +++++++++--------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/components/video-player/controls/EpisodeList.tsx b/components/video-player/controls/EpisodeList.tsx index bcf44616..bdd42ee9 100644 --- a/components/video-player/controls/EpisodeList.tsx +++ b/components/video-player/controls/EpisodeList.tsx @@ -185,11 +185,17 @@ export const EpisodeList: React.FC = ({ item, close }) => { router.replace(`player/transcoding-player?${queryParams}`); }; + if (!episodes) { + return ; + } + return ( <> @@ -221,68 +227,62 @@ export const EpisodeList: React.FC = ({ item, close }) => { - - ( - ( + + { + gotoEpisode(_item.Id); + }} > - { - gotoEpisode(_item.Id); + + + + - - - - - {_item.Name} - - - {`S${_item.ParentIndexNumber?.toString()}:E${_item.IndexNumber?.toString()}`} - - - {runtimeTicksToSeconds(_item.RunTimeTicks)} - - - - - - - {_item.Overview} + {_item.Name} + + + {`S${_item.ParentIndexNumber?.toString()}:E${_item.IndexNumber?.toString()}`} + + + {runtimeTicksToSeconds(_item.RunTimeTicks)} - )} - keyExtractor={(e: BaseItemDto) => e.Id ?? ""} - estimatedItemSize={200} - showsHorizontalScrollIndicator={false} - /> - + + + + + {_item.Overview} + + + )} + keyExtractor={(e: BaseItemDto) => e.Id ?? ""} + estimatedItemSize={200} + showsHorizontalScrollIndicator={false} + /> );