readd placeholder poster

This commit is contained in:
Pas 2025-06-04 15:33:37 -06:00
parent e10a49f0ea
commit 62ff46b191
3 changed files with 9 additions and 3 deletions

View file

@ -104,7 +104,9 @@ function MediaCardContent({
},
)}
style={{
backgroundImage: media.poster ? `url(${media.poster})` : undefined,
backgroundImage: media.poster
? `url(${media.poster})`
: "url(/placeholder.png)",
}}
>
{series ? (

View file

@ -337,7 +337,9 @@ export function MoreContent({ onShowDetails }: MoreContentProps) {
const mediaItem: MediaItem = {
id: item.id.toString(),
title: item.title || item.name || "",
poster: `https://image.tmdb.org/t/p/w342${item.poster_path}`,
poster: item.poster_path
? `https://image.tmdb.org/t/p/w342${item.poster_path}`
: "/placeholder.png",
type: isTVShow ? "show" : "movie",
year,
release_date: releaseDate ? new Date(releaseDate) : undefined,

View file

@ -517,7 +517,9 @@ export function MediaCarousel({
media={{
id: item.id.toString(),
title: item.title || item.name || "",
poster: `https://image.tmdb.org/t/p/w342${item.poster_path}`,
poster: item.poster_path
? `https://image.tmdb.org/t/p/w342${item.poster_path}`
: "/placeholder.png",
type: isTVShow ? "show" : "movie",
year: isTVShow
? item.first_air_date