From 5b7af05a9cf3a22ae922b9b55db103ec774ad31f Mon Sep 17 00:00:00 2001 From: lostb1t Date: Sat, 30 Aug 2025 15:47:17 +0200 Subject: [PATCH] feat: prefer source name over display title --- components/MediaSourceSheet.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/MediaSourceSheet.tsx b/components/MediaSourceSheet.tsx index 54327b67..76d336f2 100644 --- a/components/MediaSourceSheet.tsx +++ b/components/MediaSourceSheet.tsx @@ -26,8 +26,8 @@ export const MediaSourceSheet: React.FC = ({ const getDisplayName = useCallback((source: MediaSourceInfo) => { const videoStream = source.MediaStreams?.find((x) => x.Type === "Video"); - if (videoStream?.DisplayTitle) return videoStream.DisplayTitle; if (source.Name) return source.Name; + if (videoStream?.DisplayTitle) return videoStream.DisplayTitle; return `Source ${source.Id}`; }, []);