Store full TMDB data, add rate limiting and stale-entry refresh
Backend - Route all TMDB requests through a rate limiter (20 req/s, 8 concurrent) with 429/5xx retries; stop logging the API key - Fetch external ids, certification, keywords, videos, watch providers and alternative titles in the entry details request - Shared entry mapper used by create, refresh, season refresh and importer - New columns on entries, ids, ratings, seasons, episodes and people, with an idempotent startup migration (adds missing columns, widens types) - Fix TV IMDb ids, network country/logo, episode tmdb_id on refresh, and genre/network removal on refresh - Add stale-entries maintenance job (count, start, cancel) and live recommendations endpoint Frontend - Entry page: certification, tagline, creators, in-app trailer, vote count, TV/movie details, network logos, external links, keywords, where to watch, and recommendations - Episode page: directors, writers and guest stars - Settings: TMDB refresh card with live progress
This commit is contained in:
1 parent
cee6f7f961
commit
a9ff2d089a
33 files changed
+1722
-483
No files matched your search
@@ -13,6 +13,8 @@ interface CastListProps {
|
||||
maxItems?: number;
|
||||
/** Override link for "All Cast & Crew" — if unset, uses /entry/:entryId/cast */
|
||||
allCastHref?: string;
|
||||
/** Section heading (default: "Cast") */
|
||||
title?: string;
|
||||
}
|
||||
|
||||
export function CastList({
|
||||
@@ -21,6 +23,7 @@ export function CastList({
|
||||
isTvSeries,
|
||||
maxItems,
|
||||
allCastHref,
|
||||
title = "Cast",
|
||||
}: CastListProps) {
|
||||
let castCredits = credits.filter((c) => c.cast_type === "cast");
|
||||
const hasMore = maxItems != null && castCredits.length > maxItems;
|
||||
@@ -36,7 +39,7 @@ export function CastList({
|
||||
return (
|
||||
<div className="space-y-3">
|
||||
<div className="flex items-center justify-between">
|
||||
<h3 className="text-lg font-semibold">Cast</h3>
|
||||
<h3 className="text-lg font-semibold">{title}</h3>
|
||||
{allCastLink && (
|
||||
<Link
|
||||
to={allCastLink}
|
||||
|
||||
Reference in new issue
Block a user