From 0cd9cc88511bde5ca2e4ed59d7029fcdf17b4ce8 Mon Sep 17 00:00:00 2001 From: maxDorninger <97409287+maxDorninger@users.noreply.github.com> Date: Sat, 2 Aug 2025 13:18:21 +0200 Subject: [PATCH] add search button to basic mode, instead of searching for torrents everytime season number changes --- .../components/download-season-dialog.svelte | 47 +++++++++++-------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/web/src/lib/components/download-season-dialog.svelte b/web/src/lib/components/download-season-dialog.svelte index ee45a2b..2d470a5 100644 --- a/web/src/lib/components/download-season-dialog.svelte +++ b/web/src/lib/components/download-season-dialog.svelte @@ -126,18 +126,6 @@ } } - $effect(() => { - if (show?.id) { - console.log('selectedSeasonNumber changed:', selectedSeasonNumber); - getTorrents(selectedSeasonNumber).then((fetchedTorrents) => { - if (!isLoadingTorrents) { - torrents = fetchedTorrents; - } else if (fetchedTorrents.length > 0 || torrentsError) { - torrents = fetchedTorrents; - } - }); - } - }); {#snippet saveDirectoryPreview( @@ -166,15 +154,34 @@
{#if show?.seasons?.length > 0} Enter a season number from 1 to {show.seasons.at(-1).number} - +
+ + +

Enter the season's number you want to search for. The first, usually 1, or the last season number usually yield the most season packs. Note that only Seasons which are