github FurqanHun/mpv-music v0.25.0
v0.25.0: Smart Indexing, Web Playlists & Config Safety

latest releases: v0.30.0, v0.30.0-dev.1, v0.29.1...
9 months ago

Features

  • Indexer (Smart Fallback):
    • Implemented a fallback parser for audio files missing ID3 tags.
    • The indexer now attempts to extract metadata from filenames matching the Artist - Title.ext pattern, preventing untagged files from appearing as "UNKNOWN" in the library.
  • Playlist Engine:
    • Added native support for http://, https://, and ftp:// streams directly within .m3u playlist files.
    • Fixed relative path resolution: playlist entries are now resolved relative to the playlist file's directory, not the application's current working directory.
    • Added pre-validation to silently filter out non-existent local files during preview generation.
  • Config Safety:
    • Implemented startup validation for config.toml.
    • Volume is now automatically capped at 130 (resets to 100 if exceeded).
    • Invalid loop_mode values default to inf.
    • Added high-visibility (bold yellow) warnings on stderr when configurations are auto-corrected.

Performance

  • Startup: Replaced thread spawning with direct Command::spawn for mpv and yt-dlp dependency checks, reducing startup overhead and resource usage.
  • Playlist Scanning: Implemented an O(N) single-pass scanner for the play queue. The player now efficiently detects YouTube links to toggle yt-dlp optimizations without iterating through the list multiple times.

Fixes & Refactoring

  • Player (Deep Scan & Deduplication):
    • Updated play() to peek inside local playlist files; if a YouTube/HTTP link is found, mpv now loads the required yt-dlp options (JS runtimes/headers).
    • Introduced classify_target_weight helper to centralize URL prioritization rules, removing code duplication between playback methods.
    • Ensures consistent playback behavior for web streams regardless of input method (CLI arg vs Playlist file).
  • Stability: Refactored temporary playlist file cleanup to use AtomicBool::swap(), eliminating potential race conditions between the Ctrl+C signal handler and the Drop trait.

Don't miss a new mpv-music release

NewReleases is sending notifications on new releases.