From 24355a4b30c3d74caea3bfdd7604b25af52083ed Mon Sep 17 00:00:00 2001 From: Brock H Caldwell Date: Sun, 20 Jul 2025 10:26:12 -0500 Subject: [PATCH] fix: supports linking directly to tv season --- src/Twig/Components/TvEpisodeList.php | 2 +- templates/components/Filter.html.twig | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/Twig/Components/TvEpisodeList.php b/src/Twig/Components/TvEpisodeList.php index 43cc60a..33ff44f 100644 --- a/src/Twig/Components/TvEpisodeList.php +++ b/src/Twig/Components/TvEpisodeList.php @@ -10,7 +10,7 @@ use Symfony\UX\LiveComponent\Attribute\LiveProp; use Symfony\UX\LiveComponent\DefaultActionTrait; #[AsLiveComponent] -final class TvEpisodeList +final class TvEpisodeList { use DefaultActionTrait; use PaginateTrait; diff --git a/templates/components/Filter.html.twig b/templates/components/Filter.html.twig index 345aae1..137083c 100644 --- a/templates/components/Filter.html.twig +++ b/templates/components/Filter.html.twig @@ -73,18 +73,15 @@ {{ stimulus_action('result_filter', 'setSeason', 'change') }} {{ stimulus_action('result_filter', 'uncheckSelectAllBtn', 'change') }} > - - {% for season in range(2, results.media.episodes|length) %} - + {% for season in range(1, results.media.episodes|length) %} + {% endfor %} - {# #} {% endif %}