mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
The explore, discover, and search procedures were calling tmdbImageUrl() on raw TMDB paths before passing them to ensureBrowseTitlesExist() and ensureBrowsePersonsExist(). This stored already-resolved paths like /images/posters/abc.jpg in the DB. When getOrFetchTitle() later read these rows and called tmdbImageUrl() again, the result was a doubled path (/images/posters/images/posters/abc.jpg) that returned 404. Fix: pass raw TMDB paths for DB storage, resolve via tmdbImageUrl() only when building the client response. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>