• 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
..
fixtures Loading commit data...
conftest.py Loading commit data...
test_audio_processing.py Loading commit data...
test_auth.py Loading commit data...
test_channels.py Loading commit data...
test_database.py Loading commit data...
test_discovery.py Loading commit data...
test_docs_auth.py Loading commit data...
test_library.py Loading commit data...
test_music.py Loading commit data...
test_remix.py Loading commit data...
test_remix_engine.py Loading commit data...
test_rooms_websocket.py Loading commit data...
test_social.py Loading commit data...
test_soundmarks.py Loading commit data...
test_telegram_scan.py Loading commit data...
test_telegram_sync.py Loading commit data...