feat(backend): add TMDB preview endpoint for non-library entries
- Add GET /entries/tmdb/preview/:type/:tmdbId endpoint in entryController.js - Fetch TMDB data via tmdbService.fetchEntryData() without persisting to DB - Return normalized preview object with title, poster, genres, rating, season/episode counts
This commit is contained in:
1 parent
6aa57cbe71
commit
25b645a16f
13 files changed
+199
-10
No files matched your search
@@ -52,6 +52,7 @@ The core model — represents a movie or TV series.
|
||||
| `date_first_seen` | DATEONLY | |
|
||||
| `date_last_seen` | DATEONLY | |
|
||||
| `last_fetch` | DATEONLY | Used by [[Services#Lazy Refresh\|lazy refresh]] |
|
||||
| `entry_sync_status` | STRING(50) | Nullable. e.g. `"RequireCreditsSync"` |
|
||||
|
||||
**Has:** [[#EntryId]] (1:1), [[#EntryRating]] (1:1), [[#EntrySeen]] (1:N), [[#Season]] (1:N), [[#Credit]] (1:N), Genres (M:N), Networks (M:N), Collections (M:N), Media (polymorphic)
|
||||
|
||||
@@ -258,6 +259,8 @@ See [[People]].
|
||||
| `last_fetch` | DATEONLY | For lazy-fetch |
|
||||
| `profile_update` | DATEONLY | |
|
||||
| `fully_fetched` | BOOLEAN | Default `false` — triggers TMDB fetch when `false` |
|
||||
| `favorite` | BOOLEAN | Default `false` — user-favorited person |
|
||||
| `pinned` | BOOLEAN | Default `false` — manually added, excluded from orphan cleanup |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user