fix small bug in the seasons page

This commit is contained in:
maxDorninger
2025-06-30 17:48:15 +02:00
parent 51871d8af2
commit aeab3b1bd1
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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);
</script>
<svelte:head>
<title>{getFullyQualifiedMediaName(show())} - Season {season().number} - MediaManager</title>
<title>{getFullyQualifiedMediaName(show())} - Season {season.number} - MediaManager</title>
<meta
content="View episodes and manage downloads for {getFullyQualifiedMediaName(
show()
)} Season {season().number} in MediaManager"
)} Season {season.number} in MediaManager"
name="description"
/>
</svelte:head>