Repository navigation
This release introduces a major overhaul across search, audio playback, library indexing, and UI ergonomics. It adds unified multi-field queries, Unicode and full-width normalization, length-scaled typo tolerance, and boolean AND/OR operators across both CLI and TUI. It also brings context-aware ReplayGain normalization, natural track sorting, crash-safe atomic indexing with audio quality probing, dynamic ["default"] extension lists, YouTube live stream detection, Windows ARM64 support, and an offline mpv-music(1) man page.
Features & Improvements
- Unified Multi-Field Search: Run positional queries across Title, Artist, and Album simultaneously (e.g.
mpv-music "dean july") with multi-word, out-of-order token matching, ranked relevance scoring (exact > prefix > word boundary > substring > fuzzy), and smart ambiguity resolution via an interactive Skim track picker when multiple songs match. - Unicode, Full-Width & Scaled Typo Tolerance: Normalizes unicode accents, apostrophes, hyphens, and East Asian full-width characters across queries and library metadata. Integrates dynamic typo tolerance scaled by word length, handling prepended/appended character typos, adjacent transpositions, and bounded Levenshtein fallback on word boundaries.
- Noise Tolerance: Built-in helper strips and ignores noise in song titles and artist names during search scoring, including parentheticals (
(Official Audio)), brackets, remaster suffixes, and featured artist credits (feat.,ft.). - Boolean Operators (
AND/OR) &--orUnion Flag: Supports booleanOR(||,OR,|,,) andAND(&&,AND, space,;) across unified search queries and CLI tag filter flags (-a "ado || eve" -g "rock, pop") with per-branch candidate pruning. Added--orto combine multiple filter flags into a union rather than intersection, and aligned the interactive TUI search bar with identical boolean syntax and anchor column display. - Context-Aware ReplayGain: Added
replaygainconfiguration inconfig.toml(defaulting to"default"/"auto"), alongside--replaygain [<MODE>]and--no-replaygainCLI flags. Automatically applies--replaygain=albumduring sequential album/directory playback and--replaygain=trackfor shuffle or mixed queues, with--replaygain-clip=noanti-clipping protection. - Natural Track Sorting: Tracks in Album Mode, Tag Filter Mode, Directory Mode, and direct folder playback sort naturally in alphanumeric sequence (
01,02,10, etc.) when shuffle is disabled. - Directory Mode Overhaul: Pinned configured root music directories (
[Root]) at the top of Directory Mode, displays relative paths against library roots, and implements an adaptive multi-section preview pane showing root headers, subfolder breakdowns, and direct track listings. - Playlist Mode Multi-Selection: Interactive Playlist Mode now queues all selected playlists sequentially instead of discarding all but the first selection.
- Interactive Selection Controls: Added
Ctrl+Dto deselect only matching/filtered items andAlt+Dto deselect all items unconditionally in interactive multi-selection menus. - Audio Properties Probing: Decodes and probes track duration (
[mm:ss]), sample rate (kHz), and bitrate (kbps) vialofty, displaying live audio quality properties in TUI preview panes. - Crash-Safe Atomic Indexing: Implemented atomic library index writing using temporary
.tmpstaging and.bakbackups with automatic crash detection and startup recovery. - Configurable Filename Pattern & Heuristic Fallback: Added
filename_patterninconfig.tomlsupporting{artist},{title},{album}, and{track}tokens. When tags are missing or patterns mismatch, fallback heuristics strip leading track numbers and infer artist and album metadata from parent directory hierarchies. - JavaScript Runtime Priority & Deno Demotion: Reordered JS runtime probing for
yt-dlpYouTube playback to prioritize Node.js and QuickJS over Deno, demoting Deno to lowest priority due to its deprecation and shutdown, and updated runtime recommendations accordingly. - YouTube Live Stream Detection & Clean Titles: Detects live streams via
ytdl_is_live, displaysDuration: LIVEandType: Live Streamin search previews, adds[ LIVE ]badge to player status, suppresses sliding HLS DVR buffer times, cleans dynamic broadcast timestamps from titles via an MPV title hook, and silences benign FFmpeg exit errors (--msg-level=ffmpeg=no) in non-debug mode. - Visual Feedback Spinners & Duration Formatting: Added animated terminal progress spinners during slow operations (
yt-dlpqueries and version update checks), and expanded YouTube duration formatting to support hours (hh:mm:ss). - Dynamic Extension Lists: Added
["default"]keyword support foraudio_exts,video_exts, andplaylist_extsinconfig.tomlwith inclusion and exclusion tokens (!ext,-ext), and automatic startup migration for legacy hardcoded lists. - Standardized Keywords & Unified Startup Notifications: Standardized boolean values (
true/yes/on/1,false/no/off/none/0) and default aliases (default/auto) across config and CLI flags with deduplicated deserializers. Consolidated all config auto-populations, value clamps, and migrations into a single concise startup notice. - XDG State & Cache Path Migration: Moved session logs to
$XDG_STATE_HOME(~/.local/state/mpv-music/logs/) and YouTube search cache to$XDG_CACHE_HOME(~/.cache/mpv-music/) with automatic startup migration from legacy directories. - Nerd Font Icons & Status Line: Added album powerbar to player status line and updated the album Nerd Font icon to a vinyl record.
- Windows ARM64 Support: Added official
aarch64-pc-windows-msvcCI release builds and automated ARM64 architecture detection ininstall.ps1. - Unix Man Page: Added
mpv-music.1man page covering CLI flags, search operators, keybindings, and config reference. Bundled into Unix.tar.gzreleases and installed to$XDG_DATA_HOME/man/man1/byinstall.sh. - Fedora Copr Packaging: Added RPM
.specfile (packaging/rpm/mpv-music.spec) and automated Copr release trigger webhooks.
Performance Improvements
- Pre-Normalized Search Tokens: Pre-normalizes search query tokens once outside candidate scoring loops, eliminating redundant transformations on hot paths.
- Zero-Allocation Skim Rendering: Cached pre-rendered display strings in
TagItemandDirItem, eliminating heap allocations during Skim redraw loops. - Buffered Index Loading: Reuses line buffers and pre-allocates vector capacity during JSONL library loading.
- Fast Directory Traversal: Utilizes fast
DirEntry::file_type()checks in WalkDir traversals with symlink fallback to minimize filesystem stat overhead. - Buffered Playlist Writing: Wrapped temporary
.m3u8queue playlist generation inBufWriter.
Bug Fixes
- Calibrated Search Threshold: Tuned
STRONG_MATCH_THRESHOLD(29,000) so length-penalized exact album terms continue to prune weak fuzzy noise. - Directory Path Isolation: Isolated directory path prefix matching to whole path components (
Path::starts_with), preventing prefix collisions between sibling directories. - Nested Directory Multi-Selection: Fixed selection deduplication for nested directory structures during multi-selection.
- Corrupted YouTube Cache Recovery: Immediately purges corrupted
yt_cache.jsonfiles on load failure instead of failing repeatedly. - Edit Distance & Typo Routing: Added adjacent transposition and middle-character typo insertions to bounded edit distance, and routed ambiguous multi-match title filters directly to the interactive track picker.
- Installer PATH Verification: Stripped trailing slashes from
$INSTALL_DIRininstall.shandinstall.ps1to prevent false positive PATH warnings.
Dependencies & Chores
- Dependencies: Bumped
skimto v5.9.0, updated all dependencies inCargo.lock, and bumped defaultyt-dlpUser-Agent to Firefox 161.0. - Codebase Organization: Refactored search subsystem into dedicated modules inside
src/search/. - Test Suite Hygiene: Pruned synthetic padding and micro-tests in favor of purposeful bug regressions, contract verifications, and end-to-end CLI user flow tests.
- Documentation: Updated
README.md, CLI help screens, web guides, and documented unofficial Arch Linux AUR packages with community maintenance disclaimer.