Skip to content

v1.1.0: Modular Architecture

Choose a tag to compare

@uid13 uid13 released this 24 May 07:27
· 74 commits to main since this release

What's Changed

Architecture

  • Refactor: split monolithic music.js (~916 lines) into focused modules:
    • lib/utils.js - common utilities, error handling, dependency checks
    • lib/mpv.js - mpv process management and IPC control
    • lib/ytdl.js - yt-dlp search and audio URL extraction
    • lib/scoring.js - song candidate scoring and filtering
    • lib/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