mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 01:35:39 -04:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user