Proxy and cache preview media
build-push / docker (push) Successful in 4m5s

This commit is contained in:
AI Assistant
2026-03-16 14:28:00 +09:00
parent 473cff3b7a
commit 4dbb963256
4 changed files with 153 additions and 12 deletions
+11
View File
@@ -341,6 +341,17 @@
- [ ] full browser-level validation was not fully reproducible in this environment
## Recent Change Log
- Date: `2026-03-16`
- What changed:
- Added `/api/preview/stream` so remote preview assets are fetched through the backend instead of relying on the browser to load Envato / Artgrid media directly.
- MP4 previews are cached on disk under the downloads area, and HLS playlists are rewritten so segment fetches also flow through the same backend proxy route.
- Why it changed:
- Direct browser loading of remote preview URLs was still unstable and often failed due to upstream restrictions or missing headers.
- How it was verified:
- code-path inspection of preview proxy and playlist rewrite flow
- What is still risky or incomplete:
- HLS caching is not yet persisted segment-by-segment; current implementation rewrites playlists and proxies segment requests live.
- Date: `2026-03-16`
- What changed:
- Relaxed final recommendation merge so Gemini-reviewed non-negative items can still appear, and only a small preview-capable ranked filler set is used when the result list is otherwise too thin.