Refresh airing TV series when the calendar is opened

- POST /entries/sync-series starts a background refresh of airing TV
  series (not Ended/Canceled, auto sync on) not refreshed in the last 24h;
  manual refreshes reset that clock. GET kept as an alias, plus
  GET /entries/sync-series/status for progress
- Reuses the rate-limited stale refresh job with a series-only scope;
  only one refresh job runs at a time
- Calendar starts the sync on visit, shows progress, and reloads episodes
  and the library when it finishes
- Remove the old SyncSeriesData, whose date check no longer worked
This commit is contained in:
X4Lo committed 2026-11-20 04:02:43 +00:00
1 parent a88423163e
commit ac0030d611
8 files changed
+119 -214

No files matched your search

+3
View File
@@ -24,7 +24,10 @@ entryRouter.get(
);
entryRouter.get("/tmdb/artwork/:type/:tmdbId", entryController.getTmdbArtwork);
// Calendar sync: refresh airing TV series older than 24h (GET kept as an alias)
entryRouter.post("/sync-series", entryController.syncSeries);
entryRouter.get("/sync-series", entryController.syncSeries);
entryRouter.get("/sync-series/status", entryController.syncSeriesStatus);
entryRouter.get("/", entryController.getAllEntries);
entryRouter.get("/:id", entryController.getEntryById);