mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-29 07:21:33 -07:00
fix(stats): refresh library cover art after AniList relink
- Refetch the Library list after relinking a title's AniList entry so the grid picks up the new cover, not just the detail view - Serve cover responses with an ETag and revalidate instead of caching for a day/week, so stale art can't be served from the browser cache - Add stats-server and AnimeTab coverage for the 304 revalidation path and the post-relink refetch - Document the relink/cover-refresh behavior in the AniList integration guide
This commit is contained in:
@@ -69,6 +69,8 @@ SubMiner fetches cover art from AniList for display in the stats dashboard. When
|
||||
|
||||
A no-match result is cached for 5 minutes before SubMiner retries, preventing repeated API calls for unrecognized media.
|
||||
|
||||
If the automatic match is wrong, use **Change AniList Entry** on a title in the stats Library. Relinking rewrites the cached art for every episode of that title, and both the detail view and the Library grid pick up the new cover right away: the grid refetches after a relink, and cover responses carry an ETag and are revalidated on each request instead of being cached for a day.
|
||||
|
||||
## Rate Limiting
|
||||
|
||||
All AniList API calls go through a shared rate limiter that enforces a sliding window of 20 requests per minute. The limiter also reads AniList's `X-RateLimit-Remaining` and `Retry-After` response headers and pauses requests when the server signals throttling. This applies to both episode tracking and cover art fetching.
|
||||
|
||||
Reference in New Issue
Block a user