Use stale poster cache as an offline fallback (#64) #66
No reviewers
Labels
No labels
bug
duplicate
enhancement
future
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
albert/shepherd-launcher!66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "u/albert/64/youtube-image-cache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The poster/thumbnail disk cache discarded entries once they aged past
the 6h TTL, so a fetch was attempted and, when offline, fell back to a
placeholder. A device offline longer than the TTL kept its playlist
(which already has a stale fallback) but lost every cached thumbnail.
Mirror the playlist metadata cache: report cache freshness, attempt a
fresh fetch on a stale/missing entry, and serve stale bytes when the
fetch fails. The fresh/stale/fetch decision is factored into a pure
resolve_remote() with unit tests.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Fixes #64