wip-feat: working tv season/episode monitor

This commit is contained in:
2025-05-07 22:13:38 -05:00
parent 527adb73c1
commit 25ff3e726d
9 changed files with 71 additions and 37 deletions

View File

@@ -34,10 +34,10 @@ class DownloadController extends AbstractController
) {
$monitor = (new Monitor())
->setUser($this->getUser())
->setTmdbId('95396')
->setImdbId('tt11280740')
->setTitle('Severance')
->setMonitorType('tvshow')
->setTmdbId('112442')
->setImdbId('tt9288860')
->setTitle('Trash Truck')
->setMonitorType('tvseason')
->setSeason(1)
->setEpisode(null)
->setCreatedAt(new DateTimeImmutable())
@@ -46,8 +46,8 @@ class DownloadController extends AbstractController
$this->monitorRepository->getEntityManager()->persist($monitor);
$this->monitorRepository->getEntityManager()->flush();
$command = new MonitorTvShowCommand($monitor->getId());
$handler->handle($command);
$command = new MonitorTvSeasonCommand($monitor->getId());
// $handler->handle($command);
return $this->json([
'status' => 200,
'message' => $command