fix: change media request TV poster and movie name (#1983)

This commit is contained in:
Tagaishi
2024-03-23 16:16:17 +01:00
committed by GitHub
parent ef70e9317d
commit 11eaf9eb8e

View File

@@ -164,7 +164,7 @@ const retrieveDetailsForItem = async (
name: series.name, name: series.name,
airDate: series.firstAirDate, airDate: series.firstAirDate,
backdropPath: series.backdropPath, backdropPath: series.backdropPath,
posterPath: series.backdropPath, posterPath: series.posterPath ?? series.backdropPath,
}; };
} }
@@ -175,7 +175,7 @@ const retrieveDetailsForItem = async (
const movie = (await movieResponse.json()) as OverseerrMovie; const movie = (await movieResponse.json()) as OverseerrMovie;
return { return {
name: movie.originalTitle, name: movie.title,
airDate: movie.releaseDate, airDate: movie.releaseDate,
backdropPath: movie.backdropPath, backdropPath: movie.backdropPath,
posterPath: movie.posterPath, posterPath: movie.posterPath,
@@ -190,7 +190,7 @@ type GenericOverseerrItem = {
}; };
type OverseerrMovie = { type OverseerrMovie = {
originalTitle: string; title: string;
releaseDate: string; releaseDate: string;
backdropPath: string; backdropPath: string;
posterPath: string; posterPath: string;