fix: tmdb episode details failing from missing imdb id

This commit is contained in:
2025-09-18 18:58:43 -05:00
parent c8e190f9e8
commit deb0333635
3 changed files with 4 additions and 4 deletions

View File

@@ -170,13 +170,13 @@ class TmdbClient
return $result;
}
public function tvEpisodeDetails(string $tmdbId, int $season, int $episode): TmdbResult|TmdbEpisodeDto|null
public function tvEpisodeDetails(string $tmdbId, string $showImdbId, int $season, int $episode): TmdbResult|TmdbEpisodeDto|null
{
$result = $this->tvEpisodeRepository->getApi()->getEpisode($tmdbId, $season, $episode, ['append_to_response' => 'external_ids,credits']);
return $this->parseResult(
$result,
MediaType::TvEpisode->value,
$result['external_ids']['imdb_id']
$showImdbId
);
}