• Aryan Noshirvnai's avatar
    Add delete endpoints (library/playlists/tracks) + rate limit Discovery's identify endpoint · 575d3a59
    Aryan Noshirvnai authored
    DELETE /library/{id} - removes a song, its file on disk, and any
    PlaylistTrack rows pointing at it (owner-scoped).
    DELETE /playlists/{id} - removes a playlist and its tracks (owner-scoped).
    DELETE /playlists/{id}/tracks/{song_id} - removes one track from a
    playlist without deleting the song itself (owner-scoped).
    
    Also adds rate limiting to POST /discovery/listen (20 identify calls per
    user per 10 minutes, new DiscoveryAttempt table + migration 9f6585c71f80)
    - each call is a real, billable Shazam + AcoustID request and was
    previously uncapped. Counts every attempt, not just successful ones (a
    failed identification still costs the same external API call, and only
    successful ones create a DiscoveredSong row).
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    575d3a59
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...