- New notes: History, Artwork - Rewrite TMDB Integration: single detail request, entry mapper, rate limiter, refresh sync, stale-entry refresh, recommendations - Update pages, routing, API reference, models, database migrations, services, components, hooks, API clients, settings, media system, library, Electron (Tauri in progress) and known issues - Rewrite README for the current React/Express stack and setup
2.0 KiB
2.0 KiB
title, tags
| title | tags | |||
|---|---|---|---|---|
| Library |
|
Library
Overview
The library is the core of Showy — a personal collection of movies and TV series. Entries can be in the library (watched/watching) or the watchlist (planning to watch).
Entry Lifecycle
graph LR
TMDB[TMDB Search] --> |Add| Watchlist
Watchlist --> |Mark Watched| Library
TMDB --> |Add to Library| Library
Library --> |Toggle| Watchlist
Library --> |Delete| Gone[Deleted]
Entry States
| Flag | Meaning |
|---|---|
watchlist = false |
In library (default) |
watchlist = true |
In watchlist |
favorit = true |
Favorited |
hidden = true |
Hidden from library view |
showInCalendar = true |
Episodes appear in Calendar |
autoSync = true |
Auto-refreshed by SyncSeriesData() |
Adding Entries
- User searches TMDB via Search
- Selects a result →
POST /api/v1/entrieswith{ tmdb_id, is_tvserie } - Services#EntryManager runs the full pipeline:
- TMDB fetch → save entry + IDs + ratings + genres + networks
- TV series: fetch all seasons → all episodes
- Fetch credits → save cast/crew + People records
- Download media → generate previews
- Fetch collection if applicable
Library Store
All entries are held in Stores as a Map<number, Entry> for O(1) lookups. The store is populated on app startup and kept in sync via optimistic updates on mutations.
Pages
- Pages#LibraryPage — Grid of all library entries (All / Movies / TV tabs + Favorites and Hidden toggles)
- Pages#WatchlistPage — Grid of watchlist entries
- Pages#EntryDetailsPage — Entry detail view (also used for titles not in the library)
- History — Everything watched, by year
Related
- Watch Tracking — Marking entries as watched
- Collections — Grouping entries
- Statistics — Library analytics