diff --git a/src/Controller/SearchController.php b/src/Controller/SearchController.php index 5b63d78..c260f39 100644 --- a/src/Controller/SearchController.php +++ b/src/Controller/SearchController.php @@ -34,24 +34,18 @@ final class SearchController extends AbstractController #[Route('/result/{mediaType}/{tmdbId}', name: 'app_search_result')] public function result( GetMediaInfoInput $input, - CacheInterface $cache ): Response { - $cacheId = sprintf("page.%s.%s", $input->mediaType, $input->tmdbId); - -// return $cache->get($cacheId, function (ItemInterface $item) use ($input) { -// $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0)); - $result = $this->getMediaInfoHandler->handle($input->toCommand()); - return $this->render('search/result.html.twig', [ - 'results' => $result, - 'filter' => [ - 'resolution' => '', - 'codec' => '', - 'provider' => '', - 'language' => '', - 'season' => 1, - 'episode' => '' - ] - ]); -// }); + $result = $this->getMediaInfoHandler->handle($input->toCommand()); + return $this->render('search/result.html.twig', [ + 'results' => $result, + 'filter' => [ + 'resolution' => '', + 'codec' => '', + 'provider' => '', + 'language' => '', + 'season' => 1, + 'episode' => '' + ] + ]); } } diff --git a/templates/base.html.twig b/templates/base.html.twig index 08ba0fd..1eca04a 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -12,15 +12,14 @@ {% block importmap %}{{ importmap('app') }}{% endblock %} {% endblock %} - - - +
-
+
-
-

{% block h2 %}{% endblock %}

+
+ +

{% block h2 %}{% endblock %}

{% block body %}{% endblock %}
diff --git a/templates/components/Alert.html.twig b/templates/components/Alert.html.twig index f1a2cfd..488a7f4 100644 --- a/templates/components/Alert.html.twig +++ b/templates/components/Alert.html.twig @@ -1,4 +1,9 @@ -