fix: download player (#506)

This commit is contained in:
Simon Eklundh
2025-02-09 13:40:45 +01:00
committed by GitHub
parent 528b4ad7ac
commit e3e2db659d

View File

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