Files
iptvnator/docs
4grayandClaude Fable 5 1f86ec3342 refactor(tmdb): split enrichment services, extract Stalker season overlay, cap PWA cache
Follow-up to #1123 addressing the remaining greptile style notes:

- TmdbEnrichmentService (319 lines) is now a movie/TV resolver facade
  (227): person and season lookups moved to focused TmdbPersonService and
  TmdbSeasonService, and the shared opt-in gate / API key / language
  resolution lives in TmdbRuntimeService instead of being duplicated.
  Public API is unchanged — the facade delegates.
- Stalker series view sheds its TMDB season-overlay state and lazy fetch
  into the component-provided StalkerSeriesTmdbSeasonsService
  (912 -> 863 lines).
- The PWA in-memory TMDB cache is now a proper LRU capped at 300 entries
  (get() refreshes recency, set() evicts the oldest) instead of growing
  unboundedly for the session.

Docs updated (module table in tmdb-metadata-enrichment.md). New spec:
tmdb-cache.service.spec.ts covering the LRU behavior.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 17:15:00 +02:00
..