feat: simple related media block on results page

This commit is contained in:
2025-08-29 16:29:20 -05:00
parent 070723581a
commit 9eef567974
5 changed files with 46 additions and 8 deletions

View File

@@ -19,7 +19,8 @@ class GetMediaInfoHandler implements HandlerInterface
public function handle(CommandInterface $command): ResultInterface
{
$media = $this->tmdb->mediaDetails($command->imdbId, $command->mediaType);
$relatedMedia = $this->tmdb->relatedMedia($media->tmdbId, $command->mediaType);
return new GetMediaInfoResult($media, $command->season, $command->episode);
return new GetMediaInfoResult($media, $relatedMedia, $command->season, $command->episode);
}
}