Updated the Obsidian docs-vault
This commit is contained in:
1 parent
72fd77ee01
commit
260282a0e2
36 files changed
+3497
-144
No files matched your search
@@ -0,0 +1,62 @@
|
||||
---
|
||||
title: People
|
||||
tags:
|
||||
- feature
|
||||
- people
|
||||
- cast
|
||||
- crew
|
||||
---
|
||||
|
||||
# People
|
||||
|
||||
## Overview
|
||||
|
||||
Showy tracks actors, directors, and other crew members. People are linked to entries via [[Models#Credit|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|PeopleManager.getUpdatedPerson]]
|
||||
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` |
|
||||
| `crew` | `department`, `job` |
|
||||
|
||||
## Pages
|
||||
|
||||
- [[Pages#PeoplePage|PeoplePage]] — Browse and search people
|
||||
- [[Pages#PersonDetailsPage|PersonDetailsPage]] — Full profile + filmography
|
||||
- [[Pages#PersonTmdbRedirectPage|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.
|
||||
Reference in new issue
Block a user