Files
Showy/docs-vault/People.md
T
Mohammed Abad ce01dc34fa feat(backend): fix credit duplicates, support multi-role TV credits, fix collection upload
- 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
2026-04-23 16:51:18 +01:00

1.7 KiB

title, tags
title tags
People
feature
people
cast
crew

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:

  1. When credits are fetched for an entry, basic People records are created with fully_fetched = false
  2. When a user views a person's detail page, GET /people/:id triggers Services#PeopleManager
  3. If fully_fetched = false, full profile is fetched from TMDB:
    • Biography, birthday, place of birth, etc.
    • Profile picture downloaded and previewed
    • fully_fetched set to true
  4. 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 the character (cast) or job (crew) fields. The episode_count field tracks total episodes across all roles/jobs.

Pages

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.