Discovery: give a match from any user's library, real confidence field; rate limit /remix
Discovery hits now check the whole app's library (not just the caller's own) - if someone else (including a super-admin seed upload) already has the song, the finder gets their own LibrarySong row immediately, reusing the existing file_path rather than duplicating audio on disk. The library is built entirely from real uploads, never anything auto-downloaded, so this stays clear of the copyright concern raised earlier. AcoustID's match score and a fixed value for Shazam are now a real queryable confidence field on DiscoveredSong instead of embedded in a source string. POST /remix had no rate limiting despite being the one genuinely expensive endpoint (real Gemini spend + CPU-bound Demucs per call) - added the same DB-backed limiter pattern used elsewhere, reusing RemixJob.created_at as its own counter. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
Please
register
or
sign in
to comment