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:
1 parent
a88423163e
commit
ac0030d611
8 files changed
+119
-214
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user