- Fix credit dedup key to people_id + cast_type (scoped to entry_id) - Detect aggregate_credits format via Array.isArray(c.roles) instead of is_tvseries flag - Join multiple roles/jobs with "; " instead of taking only the first - Add episode_count field to Credit model from total_episode_count - Increase character and job columns to VARCHAR(500) - Deselect existing collection posters/backdrops before inserting new upload - Updated docs-vault - Updated some agents files
1.7 KiB
1.7 KiB
title, tags
| title | tags | ||||
|---|---|---|---|---|---|
| People |
|
People
Overview
Showy tracks actors, directors, and other crew members. People are linked to entries via Models#Credit records.
Lazy-Fetch Pattern
People profiles are lazily fetched from TMDB:
- When credits are fetched for an entry, basic
Peoplerecords are created withfully_fetched = false - When a user views a person's detail page,
GET /people/:idtriggers Services#PeopleManager - If
fully_fetched = false, full profile is fetched from TMDB:- Biography, birthday, place of birth, etc.
- Profile picture downloaded and previewed
fully_fetchedset totrue
- Subsequent views skip the TMDB call
Data Model
See Models#People and Models#Credit.
Credit Types
cast_type |
Fields Used |
|---|---|
cast |
character, order, episode_count |
crew |
department, job, episode_count |
[!info] Multiple Roles For TV series (using TMDB
aggregate_credits), a person may have multiple roles or jobs. These are stored joined by"; "in thecharacter(cast) orjob(crew) fields. Theepisode_countfield tracks total episodes across all roles/jobs.
Pages
- Pages#PeoplePage — Browse and search people
- Pages#PersonDetailsPage — Full profile + filmography
- Pages#PersonTmdbRedirectPage — TMDB ID → local redirect
API Endpoints
See API Reference#People.
Hooks
See Hooks#usePeople.
TMDB Data
People data from TMDB includes:
- Full biography
- Birth/death dates and location
- Profile images
- Combined credits (all movies + TV shows)
See TMDB Integration for API details.