Remove TV loading store

This commit is contained in:
WardPearce
2025-11-07 13:33:12 +13:00
parent 24fcd0f1d7
commit 44126a3c78
7 changed files with 16 additions and 10 deletions
+10
View File
@@ -11,6 +11,7 @@
"dependencies": {
"@capacitor-community/electron": "^5.0.0",
"bgutils-js": "^3.2.0",
"capacitor-nodejs": "https://github.com/hampoelz/capacitor-nodejs/releases/download/v1.0.0-beta.9/capacitor-nodejs.tgz",
"chokidar": "~4.0.3",
"electron-is-dev": "~2.0.0",
"electron-serve": "~3.0.0",
@@ -1862,6 +1863,15 @@
"node": ">= 0.4"
}
},
"node_modules/capacitor-nodejs": {
"version": "1.0.0-beta.9",
"resolved": "https://github.com/hampoelz/capacitor-nodejs/releases/download/v1.0.0-beta.9/capacitor-nodejs.tgz",
"integrity": "sha512-4EU/QBolfuyHiMtwd1nxZ4wsK243tGE4VttKvVBG+x1yQuK9EIlEf3lbRjFXfjrJMTZNCqaP6glmdfj9Zo7KVg==",
"license": "MIT",
"peerDependencies": {
"@capacitor/core": ">=7.0.0"
}
},
"node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+2 -1
View File
@@ -24,6 +24,7 @@
"dependencies": {
"@capacitor-community/electron": "^5.0.0",
"bgutils-js": "^3.2.0",
"capacitor-nodejs": "https://github.com/hampoelz/capacitor-nodejs/releases/download/v1.0.0-beta.9/capacitor-nodejs.tgz",
"chokidar": "~4.0.3",
"electron-is-dev": "~2.0.0",
"electron-serve": "~3.0.0",
@@ -43,4 +44,4 @@
"capacitor",
"electron"
]
}
}
@@ -1,4 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const CapacitorNodejs = require('../../../node_modules/capacitor-nodejs/electron/dist/plugin.js');
module.exports = {
CapacitorNodejs,
}
@@ -352,7 +352,6 @@
}
if (data.video.captions) {
console.log(data.video.captions);
for (const caption of data.video.captions) {
let captionUrl: string;
if (!import.meta.env.VITE_DEFAULT_COMPANION_INSTANCE) {
-1
View File
@@ -146,4 +146,3 @@ export const playlistCacheStore: Writable<{
}> = writable({});
export const isAndroidTvStore: Writable<boolean> = writable(false);
export const isTvRouteLoading: Writable<boolean> = writable(false);
@@ -1,7 +1,6 @@
<script lang="ts">
import { navigating } from '$app/stores';
import PageLoading from '$lib/components/PageLoading.svelte';
import { isTvRouteLoading } from '$lib/store';
let { children } = $props();
</script>
@@ -15,7 +14,7 @@
</style>
</svelte:head>
{#if $isTvRouteLoading || $navigating}
{#if $navigating}
<PageLoading />
{:else}
{@render children?.()}
@@ -1,9 +1,5 @@
import { isTvRouteLoading } from '$lib/store';
import { getWatchDetails } from '$lib/watch';
export async function load({ params, url }) {
isTvRouteLoading.set(true);
const details = await getWatchDetails(params.slug, url);
isTvRouteLoading.set(false);
return details;
return await getWatchDetails(params.slug, url);
}