From f71eb0be5a399ee7219b82a18619798888956f57 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Sat, 19 Oct 2024 09:18:03 +0200 Subject: [PATCH] wip --- components/ItemContent.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/ItemContent.tsx b/components/ItemContent.tsx index 9c65f8ed..e3e6406c 100644 --- a/components/ItemContent.tsx +++ b/components/ItemContent.tsx @@ -48,7 +48,7 @@ export const ItemContent: React.FC<{ item: BaseItemDto }> = React.memo( useFocusEffect( useCallback(() => { - if (!settings) return; + if (!settings || item.Type === "Program") return; const { bitrate, mediaSource, audioIndex, subtitleIndex } = getDefaultPlaySettings(item, settings); @@ -60,6 +60,14 @@ export const ItemContent: React.FC<{ item: BaseItemDto }> = React.memo( subtitleIndex, }); + console.log({ + 1: item, + 2: bitrate, + 3: mediaSource, + 4: audioIndex, + 5: subtitleIndex, + }); + if (!mediaSource) { Alert.alert("Error", "No media source found for this item."); navigation.goBack();