mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 23:12:51 +01:00
Add a little more logging about matching process
This could help debug #2446. It will help, at least, narrow down when the Munkres algorithm is taking too long.
This commit is contained in:
parent
0a4709f7ef
commit
26408dd58d
1 changed files with 4 additions and 1 deletions
|
|
@ -103,7 +103,9 @@ def assign_items(items, tracks):
|
|||
costs.append(row)
|
||||
|
||||
# Find a minimum-cost bipartite matching.
|
||||
log.debug('Computing track assignment...')
|
||||
matching = Munkres().compute(costs)
|
||||
log.debug('...done.')
|
||||
|
||||
# Produce the output matching.
|
||||
mapping = dict((items[i], tracks[j]) for (i, j) in matching)
|
||||
|
|
@ -349,7 +351,8 @@ def _add_candidate(items, results, info):
|
|||
checking the track count, ordering the items, checking for
|
||||
duplicates, and calculating the distance.
|
||||
"""
|
||||
log.debug(u'Candidate: {0} - {1}', info.artist, info.album)
|
||||
log.debug(u'Candidate: {0} - {1} ({2})',
|
||||
info.artist, info.album, info.album_id)
|
||||
|
||||
# Discard albums with zero tracks.
|
||||
if not info.tracks:
|
||||
|
|
|
|||
Loading…
Reference in a new issue