Commit Graph
19 Commits
Author SHA1 Message Date
X4Lo a9ff2d089a Store full TMDB data, add rate limiting and stale-entry refresh
Backend
- Route all TMDB requests through a rate limiter (20 req/s, 8 concurrent)
  with 429/5xx retries; stop logging the API key
- Fetch external ids, certification, keywords, videos, watch providers and
  alternative titles in the entry details request
- Shared entry mapper used by create, refresh, season refresh and importer
- New columns on entries, ids, ratings, seasons, episodes and people, with
  an idempotent startup migration (adds missing columns, widens types)
- Fix TV IMDb ids, network country/logo, episode tmdb_id on refresh, and
  genre/network removal on refresh
- Add stale-entries maintenance job (count, start, cancel) and live
  recommendations endpoint

Frontend
- Entry page: certification, tagline, creators, in-app trailer, vote count,
  TV/movie details, network logos, external links, keywords, where to
  watch, and recommendations
- Episode page: directors, writers and guest stars
- Settings: TMDB refresh card with live progress
2026-11-05 11:39:15 +00:00
X4Lo a5659cf4c8 Normalize to double quotes across all files with Prettier 2026-06-21 22:28:08 +01:00
Mohammed Abad 22d111ef71 fix(backend): include EpisodeSeen in season episodes and add entry credits endpoint
- Add getEntryCredits service method returning all cast + crew with People, ordered by cast_type, order, episode_count
- Add getEntryCredits controller method
- Add GET /entries/:id/credits route in entry.routes.js
- Include EpisodeSeen association in getSeasonEpisodes so seen dates are returned to frontend
2026-04-29 16:04:10 +01:00
Mohammed Abad 25b645a16f 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
2026-04-27 04:03:02 +01:00
Mohammed Abad ab20a5e64f feat: multi-page improvements, bug fixes, and new features
Library:
- Exclude hidden entries from all/movies/tv/favorites tabs (only show in hidden tab)

Entry Details:
- Move favorite, mark watched, and more actions to top-right as icon-only buttons with tooltips
- Fix season card play button — marks next unwatched episode as seen

Seasons Page:
- Fix episode watch button (was a TODO stub, now calls createEpisodeSeen)

Episode Page:
- Fix UI not updating after deleting the last watch record — invalidate season episodes query on delete

Dashboard:
- Fix Top Genres 404 — was calling non-existent GET /statistics, now uses /statistics/watch-time
- Fix TopGenresChart genre counting (Genre objects were wrongly cast as strings)
- Add LibraryGrowthChart (cumulative titles added over time)
- Add MediaTypeChart (Movies vs TV Series donut chart)

Home Page:
- Add TrendingSlider hero at top of page with auto-advance, dots, and prev/next nav
- Fix slider prev/next buttons (stable callbacks via ref, plain buttons, reactive library state)
- Add debounce (400ms) to search input
- Add Top Rated section (movies & TV)
- Add Upcoming section (movies)
- Replace inline "More" expand with link to /discover/:category

Discover Page (new):
- Full-page TMDB browser per category (trending/popular/top-rated/upcoming)
- Movie/TV tab toggle
- IntersectionObserver infinite scroll

Calendar:
- Fix large season numbers — use season.season_number instead of season_id (DB primary key)

Backend:
- Add fetchTopRated() and fetchUpcoming() to tmdbService
- Add GET /entries/tmdb/top-rated/:type and /entries/tmdb/upcoming/movie routes
2026-04-02 03:29:54 +01:00
Mohammed Abad 236e6e06fb Backend: Add TMDB proxy routes and service methods for trending, popular, and search functionalities 2026-03-30 23:33:29 +01:00
X4Lo f1cd3f9167 Backend: minor fixes + Added people media folder auto creating & mutler upload function 2025-07-11 23:38:00 +01:00
X4Lo dbb00fdb61 Major Backend SI Update part 2: added controllers 2025-02-15 22:42:57 +01:00
X4Lo cbdffb21e3 Major Backend Single Responsibility Update part 1 2025-01-25 04:29:42 +01:00
X4Lo 625ec3367e Front/Back: add entry settings modal 2024-10-21 15:43:09 +01:00
X4Lo f7cb2bed53 Major rework of media handelling, and collections 2024-09-13 21:27:01 +01:00
X4Lo b42e055691 Back: reworked the media/entry relation 2024-09-10 21:32:46 +01:00
X4Lo f73deb4f2d Back: entry service add: entry media routes, refrech collection, get collection on create, sync series route 2024-09-10 01:22:04 +01:00
X4Lo c46309e458 add entry media upload menu 2024-08-30 14:25:58 +01:00
X4Lo 7a21c6ebd8 add table view to library page 2024-06-06 15:07:14 +01:00
X4Lo 34766ba8e9 implemented images maintenance, services + component 2024-06-06 03:41:55 +01:00
X4Lo 29d6e3f503 Add specific episode-seen 2024-05-19 17:03:38 +01:00
X4Lo bffc1227c3 add: update modal for entry seen 2024-05-19 06:55:47 +01:00
X4Lo d6c3a974a1 renamed backend routes files + add fields to entry model 2024-05-18 15:37:02 +01:00