feat(core): use TMDB combined credits for full person filmography

The people.detail endpoint now fetches a person's complete filmography
from TMDB's combined_credits API (cast + crew) instead of only returning
locally-enriched titles.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-15 16:13:43 -04:00
co-authored by Claude Opus 4.6
parent 4ce285f721
commit d0eca7cf32
2 changed files with 37 additions and 9 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { ORPCError } from "@orpc/server";
import {
getLocalFilmography,
fetchFullFilmography,
getOrFetchPerson,
getOrFetchPersonByTmdbId,
} from "@sofa/core/person";
@@ -15,7 +15,7 @@ export const detail = os.people.detail
if (!person)
throw new ORPCError("NOT_FOUND", { message: "Person not found" });
const filmography = getLocalFilmography(person.id);
const filmography = await fetchFullFilmography(person.id);
const userStatuses = getUserStatusesByTitleIds(
context.user.id,
filmography.map((c) => c.titleId),