mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 23:21:51 +01:00
show poster in bookmarks
This commit is contained in:
parent
06eb8e6b6d
commit
c9bac3ed68
@ -53,7 +53,9 @@ export function fromatTMDBMetaResult(
|
|||||||
id: details.id,
|
id: details.id,
|
||||||
title: (details as TMDBMovieData).title,
|
title: (details as TMDBMovieData).title,
|
||||||
object_type: mediaTypeToTMDB(type),
|
object_type: mediaTypeToTMDB(type),
|
||||||
poster: (details as TMDBMovieData).poster_path ?? undefined,
|
poster:
|
||||||
|
Tmdb.getMediaPoster((details as TMDBMovieData).poster_path) ??
|
||||||
|
undefined,
|
||||||
original_release_year: Number(
|
original_release_year: Number(
|
||||||
(details as TMDBMovieData).release_date?.split("-")[0]
|
(details as TMDBMovieData).release_date?.split("-")[0]
|
||||||
),
|
),
|
||||||
@ -69,7 +71,9 @@ export function fromatTMDBMetaResult(
|
|||||||
season_number: v.season_number,
|
season_number: v.season_number,
|
||||||
title: v.name,
|
title: v.name,
|
||||||
})),
|
})),
|
||||||
poster: (details as TMDBMovieData).poster_path ?? undefined,
|
poster:
|
||||||
|
Tmdb.getMediaPoster((details as TMDBMovieData).poster_path) ??
|
||||||
|
undefined,
|
||||||
original_release_year: Number(
|
original_release_year: Number(
|
||||||
(details as TMDBShowData).first_air_date?.split("-")[0]
|
(details as TMDBShowData).first_air_date?.split("-")[0]
|
||||||
),
|
),
|
||||||
|
@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next";
|
|||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import { TMDBMediaToId } from "@/backend/metadata/getmeta";
|
import { TMDBMediaToId } from "@/backend/metadata/getmeta";
|
||||||
|
import { Tmdb } from "@/backend/metadata/tmdb";
|
||||||
import { MWMediaMeta } from "@/backend/metadata/types";
|
import { MWMediaMeta } from "@/backend/metadata/types";
|
||||||
import { DotList } from "@/components/text/DotList";
|
import { DotList } from "@/components/text/DotList";
|
||||||
|
|
||||||
@ -55,7 +56,9 @@ function MediaCardContent({
|
|||||||
closable ? "" : "group-hover:rounded-lg",
|
closable ? "" : "group-hover:rounded-lg",
|
||||||
].join(" ")}
|
].join(" ")}
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: media.poster ? `url(${media.poster})` : undefined,
|
backgroundImage: media.poster
|
||||||
|
? `url(${Tmdb.getMediaPoster(media.poster)})`
|
||||||
|
: undefined,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{series ? (
|
{series ? (
|
||||||
|
Loading…
Reference in New Issue
Block a user