e3fe3c6f48
- Add MAX_LIMIT=10000 constant to prevent DoS attacks while supporting large libraries through pagination - Apply MAX_LIMIT to /library/artists, /library/albums, /library/tracks - Add trackCount field to artists endpoint (fixes "Most Tracks" sort) - Add /library/tracks/shuffle endpoint for server-side shuffle - Update frontend to use server-side shuffle instead of fetching 10k tracks The shuffle endpoint uses Fisher-Yates algorithm and samples random tracks for large libraries to avoid loading the entire database into memory. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>