fix: remove items

This commit is contained in:
Fredrik Burmester
2024-11-25 21:59:38 +01:00
parent 8c909e17bd
commit 4f72cacbc0
2 changed files with 5 additions and 13 deletions

View File

@@ -34,12 +34,8 @@ export const useDownloadedFileOpener = () => {
const openFile = useCallback(
async (item: BaseItemDto) => {
try {
console.log(
"Go to offline movie",
"/player?offline=true&itemId=" + item.Id
);
// @ts-expect-error
router.push("/player?offline=true&itemId=" + item.Id);
router.push("/player/direct-player?offline=true&itemId=" + item.Id);
} catch (error) {
writeToLog("ERROR", "Error opening file", error);
console.error("Error opening file:", error);