v1.1.0: Modular Architecture
What's Changed
Architecture
- Refactor: split monolithic music.js (~916 lines) into focused modules:
lib/utils.js- common utilities, error handling, dependency checkslib/mpv.js- mpv process management and IPC controllib/ytdl.js- yt-dlp search and audio URL extractionlib/scoring.js- song candidate scoring and filteringlib/output.js- Markdown format output
- Reduce music.js to ~150 lines as orchestrator
Bug Fixes
- Fix artist mode timeout by using flat search (ytFlatSearch)
- Fix HTTP 403 in artist mode by using video page URLs instead of temp audio URLs
Testing
- ✅ Single song mode tested
- ✅ Artist mode tested
- ✅ Playback controls tested (pause, resume, status, stop)
Full Changelog: v1.0.0...v1.1.0