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:
Mohammed Abad committed 2026-04-27 04:03:02 +01:00
1 parent 6aa57cbe71
commit 25b645a16f
13 files changed
+199 -10

No files matched your search

+3 -1
View File
@@ -39,7 +39,9 @@ const Entry = sequelize.define("entry",
date_last_seen: { type: DataTypes.DATEONLY, field: 'date_last_seen' },
last_fetch: { type: DataTypes.DATEONLY },
entry_sync_status: { type: DataTypes.STRING(50), field: 'entry_sync_status', allowNull: true },
}
);
module.exports = Entry;
module.exports = Entry;