wip-feat: working tv season/episode monitor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user