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!);