From aeab3b1bd1c2b7a459f1924e4c2f6c3d9af1f2b6 Mon Sep 17 00:00:00 2001 From: maxDorninger <97409287+maxDorninger@users.noreply.github.com> Date: Mon, 30 Jun 2025 17:48:15 +0200 Subject: [PATCH] fix small bug in the seasons page --- web/src/routes/dashboard/tv/[showId=uuid]/+page.svelte | 2 +- .../dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.svelte | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/routes/dashboard/tv/[showId=uuid]/+page.svelte b/web/src/routes/dashboard/tv/[showId=uuid]/+page.svelte index 048cf9a..34a6a63 100644 --- a/web/src/routes/dashboard/tv/[showId=uuid]/+page.svelte +++ b/web/src/routes/dashboard/tv/[showId=uuid]/+page.svelte @@ -26,7 +26,7 @@ async function toggle_continuous_download() { let url = new URL(apiUrl + '/tv/shows/' + show().id + '/continuousDownload'); - url.searchParams.append('continuous_download', !show().continuous_download); + url.searchParams.append('continuous_download', String(!show().continuous_download)); console.log( 'Toggling continuous download for show', show().name, diff --git a/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.svelte b/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.svelte index 35b7c3b..26b6524 100644 --- a/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.svelte +++ b/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.svelte @@ -12,17 +12,17 @@ let seasonFiles: PublicSeasonFile[] = $state(page.data.files); let season: Season = $state(page.data.season); - let show: Show = getContext('show'); + let show: ()=> Show = getContext('show'); console.log('loaded files', seasonFiles); - {getFullyQualifiedMediaName(show())} - Season {season().number} - MediaManager + {getFullyQualifiedMediaName(show())} - Season {season.number} - MediaManager