mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 17:26:26 +01:00
fix: change media request TV poster and movie name (#1983)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user