mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-20 09:52:06 +00:00
readd placeholder poster
This commit is contained in:
parent
e10a49f0ea
commit
62ff46b191
3 changed files with 9 additions and 3 deletions
|
|
@ -104,7 +104,9 @@ function MediaCardContent({
|
|||
},
|
||||
)}
|
||||
style={{
|
||||
backgroundImage: media.poster ? `url(${media.poster})` : undefined,
|
||||
backgroundImage: media.poster
|
||||
? `url(${media.poster})`
|
||||
: "url(/placeholder.png)",
|
||||
}}
|
||||
>
|
||||
{series ? (
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue