Description
parse_lrc_metadata takes everything up to the first ] on a line, so [ti:Vision [Radio Edit]] parses as Vision [Radio Edit. import_lyrics_files compares [ti:] and [ar:] against the song's title and artist exactly, so such a file matches no song and is reported unmatched. [al:] truncates the same way.
Steps to reproduce
- Import a song with a bracketed title — artist
Artist, titleVision [Radio Edit]. - Import an
.lrcbeginning:
[ti:Vision [Radio Edit]]
[ar:Artist]
[00:10.00]First line
Expected behavior
The .lrc matches the song, as it would if the title had no brackets.
Actual behavior
Unmatched. The parsed title is Vision [Radio Edit.
Environment
- Version: 0.15.0 (
maind1d1ffd0) - OS: Windows 10
Additional context
parse_lrc_metadata in src-tauri/src/lyrics/parser.rs uses stripped.find(']'). I have a fix with regression tests and will open a PR.