From b5cd240fbd602dc1609aaa4516570731f5fcb61e Mon Sep 17 00:00:00 2001 From: Brock H Caldwell Date: Sun, 8 Jun 2025 10:39:46 -0500 Subject: [PATCH] fix: keyboard navigation on tv results --- src/Controller/TorrentioController.php | 6 +++--- templates/torrentio/tvshows.html.twig | 11 ++++------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/Controller/TorrentioController.php b/src/Controller/TorrentioController.php index ad40ee7..2d927b7 100644 --- a/src/Controller/TorrentioController.php +++ b/src/Controller/TorrentioController.php @@ -52,13 +52,13 @@ final class TorrentioController extends AbstractController $input->episode, ); - return $cache->get($cacheId, function (ItemInterface $item) use ($input) { - $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0)); +// return $cache->get($cacheId, function (ItemInterface $item) use ($input) { +// $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0)); $results = $this->getTvShowOptionsHandler->handle($input->toCommand()); return $this->render('torrentio/tvshows.html.twig', [ 'results' => $results, ]); - }); +// }); } #[Route('/torrentio/tvshows/clear/{tmdbId}/{imdbId}/{season?}/{episode?}', name: 'app_clear_torrentio_tvshows')] diff --git a/templates/torrentio/tvshows.html.twig b/templates/torrentio/tvshows.html.twig index 6369644..0d8f0b8 100644 --- a/templates/torrentio/tvshows.html.twig +++ b/templates/torrentio/tvshows.html.twig @@ -13,11 +13,11 @@

{{ results.media.description }}

- {{ results.results|length }} results - + {% if results.file != false %} @@ -57,16 +57,13 @@ - - -
-
-
+