From e3e2db659dc024caf76b868dac304f9b03db3882 Mon Sep 17 00:00:00 2001 From: Simon Eklundh Date: Sun, 9 Feb 2025 13:40:45 +0100 Subject: [PATCH] fix: download player (#506) --- app/(auth)/player/direct-player.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/(auth)/player/direct-player.tsx b/app/(auth)/player/direct-player.tsx index 5a2e2587..60ae7796 100644 --- a/app/(auth)/player/direct-player.tsx +++ b/app/(auth)/player/direct-player.tsx @@ -117,7 +117,7 @@ export default function page() { queryKey: ["item", itemId], queryFn: async () => { if (offline && !Platform.isTV) { - const item = await getDownloadedItem(itemId); + const item = await getDownloadedItem.getDownloadedItem(itemId); if (item) return item.item; } @@ -140,7 +140,7 @@ export default function page() { queryKey: ["stream-url", itemId, mediaSourceId, bitrateValue], queryFn: async () => { if (offline && !Platform.isTV) { - const data = await getDownloadedItem(itemId); + const data = await getDownloadedItem.getDownloadedItem(itemId); if (!data?.mediaSource) return null; const url = await getDownloadedFileUrl(data.item.Id!);