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.extpattern, preventing untagged files from appearing as "UNKNOWN" in the library.
- Playlist Engine:
- Added native support for
http://,https://, andftp://streams directly within.m3uplaylist 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.
- Added native support for
- Config Safety:
- Implemented startup validation for
config.toml. - Volume is now automatically capped at 130 (resets to 100 if exceeded).
- Invalid
loop_modevalues default toinf. - Added high-visibility (bold yellow) warnings on stderr when configurations are auto-corrected.
- Implemented startup validation for
Performance
- Startup: Replaced thread spawning with direct
Command::spawnformpvandyt-dlpdependency 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-dlpoptimizations 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,mpvnow loads the requiredyt-dlpoptions (JS runtimes/headers). - Introduced
classify_target_weighthelper 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).
- Updated
- Stability: Refactored temporary playlist file cleanup to use
AtomicBool::swap(), eliminating potential race conditions between theCtrl+Csignal handler and theDroptrait.