• Aryan Noshirvnai's avatar
    Discovery: give a match from any user's library, real confidence field; rate limit /remix · b1f5d610
    Aryan Noshirvnai authored
    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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    b1f5d610
Name
Last commit
Last update
alembic Loading commit data...
deploy Loading commit data...
scripts Loading commit data...
src Loading commit data...
tests Loading commit data...
.env.example Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
Dockerfile Loading commit data...
README.md Loading commit data...
alembic.ini Loading commit data...
docker-compose.yml Loading commit data...
requirements-remix.txt Loading commit data...
requirements.txt Loading commit data...
setup.sh Loading commit data...