beets/beets
Šarūnas Nejus 0d6393e712
Fix track matching
I had previously tested the `munkres` -> `lapjv` replacement
extensively, so I was today surprised to find that nothing gets matched
correctly when I tried importing some new tracks.

On the other hand I now remember making a small adjustment in the logic
to make autotagging tests pass which is when I introduced a bug: I did
not realize that `lapjv` returns index '-1' for each unmatched item.

This issue did not get caught by tests because this 'unmatched' item
index '-1' anecdotally ended up pointing to the last (expected) item in
the test making it pass.

This commit adjusts the aforementioned test to catch this issue and
fixes the logic to correctly identify unmatched tracks.
2024-12-31 00:08:10 +00:00
..
autotag Fix track matching 2024-12-31 00:08:10 +00:00
dbcore Properly type db on the model, sort out generic types issues (#5545) 2024-12-19 16:46:38 +00:00
test Perform a regex substitution in the substitute plugin (#5357) 2024-11-22 05:02:50 +00:00
ui Update deprecated imports 2024-12-10 06:10:04 +00:00
util Use shutil.move() to move files. (#5123) 2024-12-26 18:45:21 +00:00
__init__.py Increment version to 2.2.0 2024-12-02 06:56:49 +00:00
__main__.py Reformat the codebase 2024-09-21 11:57:48 +01:00
art.py Reformat the codebase 2024-09-21 11:57:48 +01:00
config_default.yaml Fix SACD Imports 2024-11-22 22:33:09 -05:00
importer.py remove debugging code 2024-11-06 23:17:38 -05:00
library.py Properly type db on the model, sort out generic types issues (#5545) 2024-12-19 16:46:38 +00:00
logging.py Remove some lint exclusions and fix the issues 2024-09-21 11:59:19 +01:00
mediafile.py Apply formatting tools to all files 2023-10-22 09:53:18 +10:00
plugins.py Delete unnecessary comma in feat detection regex 2024-09-23 12:26:51 -04:00
random.py Make a random change for testing 2024-05-07 16:28:28 +01:00
vfs.py Use PEP585 lowercase collections typing annotations 2024-12-10 06:10:03 +00:00