Update docs vault and README for recent features
- 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
This commit is contained in:
1 parent
06bf902ad3
commit
229ecef902
20 files changed
+479
-162
No files matched your search
+26
-6
@@ -172,9 +172,9 @@ CRUD for [[Collections]]. Handles `UserCollectionEntry` join records.
|
||||
|
||||
See [[TMDB Integration]].
|
||||
|
||||
14 methods wrapping TMDB API v3 calls:
|
||||
Every request goes through `tmdbGet(path, params)` — a rate-limited queue (20 req/s, 8 concurrent) with retries on 429 / 5xx / network errors. The API key is never logged.
|
||||
|
||||
`fetchEntryData`, `fetchSeasonData`, `fetchEntryMedia`, `fetchCollectionData`, `fetchEntryCredits`, `fetchPersonDetails`, `fetchPersonCombinedCredits`, `fetchTrending`, `fetchPopular`, `fetchTopRated`, `fetchUpcoming`, `searchMulti`, `searchPeople`, `fetchPopularPeople`
|
||||
Methods: `fetchEntryData` (details + appended blocks), `fetchSeasonData`, `fetchEntryMedia`, `fetchEntryRecommendations`, `fetchCollectionData`, `fetchEntryCredits`, `fetchPersonDetails`, `fetchPersonCombinedCredits`, `fetchTrending`, `fetchPopular`, `fetchTopRated`, `fetchUpcoming`, `searchMulti`, `searchPeople`, `fetchPopularPeople`
|
||||
|
||||
### configService
|
||||
|
||||
@@ -218,11 +218,31 @@ See [[Import System]].
|
||||
|
||||
> [!info] File: `backend/services/maintenanceService.js`
|
||||
|
||||
See [[Settings Page#Cleanup]].
|
||||
See [[Settings Page]].
|
||||
|
||||
- `deleteOrphanFiles(dry)` — Files on disk without DB records
|
||||
- `deleteOrphanMediaRecords(dry)` — DB records without files on disk
|
||||
- Both return `{ posters, logos, backdrops, stills }` counts
|
||||
- `deleteOrphanFiles(dry)` / `deleteOrphanMediaRecords(dry)` — return `{ posters, logos, backdrops, stills }` counts
|
||||
- `deleteOrphanPeople`, `fixMissingDirectors`, `cleanDuplicateCredits`, `autoFixWatchStatuses`, `fixImpossibleSeenDates`
|
||||
- `getStaleEntries(hours)` — entries never fetched or fetched more than `hours` ago (auto sync on)
|
||||
- `startStaleRefresh(hours)` / `getStaleRefreshStatus()` / `cancelStaleRefresh()` — background job that refreshes stale entries one at a time via `entryManager.refrechEntryById`
|
||||
|
||||
### artworkService
|
||||
|
||||
> [!info] File: `backend/services/artworkService.js`
|
||||
|
||||
See [[Artwork]].
|
||||
|
||||
- `getEntryArtwork(entryId)` — TMDB images merged with the entry's media rows (`in_library`, `media_id`, `is_selected`)
|
||||
- `getTmdbArtwork(type, tmdbId)` — TMDB images only
|
||||
- `addEntryArtwork(entryId, { type, file_path })` — downloads the original into the media table (deduplicated by `tmdbPath`; selected if none of that type is)
|
||||
|
||||
### historyService
|
||||
|
||||
> [!info] File: `backend/services/historyService.js`
|
||||
|
||||
See [[History]].
|
||||
|
||||
- `getYears()` — years with watches and their movie/episode counts
|
||||
- `getYear(year)` — every watch in a year with entries listed once
|
||||
|
||||
### logService
|
||||
|
||||
|
||||
Reference in new issue
Block a user