diff --git a/assets/controllers/tv_episode_list_controller.js b/assets/controllers/tv_episode_list_controller.js index 8938867..f767614 100644 --- a/assets/controllers/tv_episode_list_controller.js +++ b/assets/controllers/tv_episode_list_controller.js @@ -24,7 +24,6 @@ export default class extends Controller { } paginate(event) { - console.log(event.params.page) this.element.querySelectorAll(".episode-container").forEach(element => element.remove()); this.component.action('paginate', {page: event.params.page}); this.component.render(); diff --git a/assets/controllers/tv_results_controller.js b/assets/controllers/tv_results_controller.js index 87b6caa..da54b7e 100644 --- a/assets/controllers/tv_results_controller.js +++ b/assets/controllers/tv_results_controller.js @@ -55,19 +55,13 @@ export default class extends Controller { // } async setActive() { - this.activeValue = true; - // this.element.classList.remove('hidden'); if (false === this.optionsLoaded) { await this.setOptions(); } } async setInActive() { - this.activeValue = false; - // if (true === this.hasEpisodeSelectorTarget()) { this.episodeSelectorTarget.checked = false; - // } - // this.element.classList.add('hidden'); } isActive() { diff --git a/src/Controller/TorrentioController.php b/src/Controller/TorrentioController.php index 2d927b7..ad40ee7 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/tailwind.config.js b/tailwind.config.js index 6d5aa5c..98cd934 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -13,6 +13,7 @@ module.exports = { "bg-orange-400", "bg-blue-600", "bg-rose-600", + "min-w-64", "transition-opacity", "ease-in", "duration-700", diff --git a/templates/partial/paginator.html.twig b/templates/partial/paginator.html.twig index 9d2621c..42084f7 100644 --- a/templates/partial/paginator.html.twig +++ b/templates/partial/paginator.html.twig @@ -34,7 +34,7 @@ {% if startPage > 2 %}