mirror of
https://github.com/beetbox/beets.git
synced 2025-12-17 22:23:16 +01:00
fix for undefined TRACK_LENGTH_GRACE
Thanks for catching this, @mrmachine.
This commit is contained in:
parent
3b438b7778
commit
d8815898b8
1 changed files with 2 additions and 1 deletions
|
|
@ -425,7 +425,8 @@ def _recommendation(results):
|
|||
# Track length differs.
|
||||
if rec > max_rec['tracklength'] and \
|
||||
item.length and track_info.length and \
|
||||
abs(item.length - track_info.length) > TRACK_LENGTH_GRACE:
|
||||
abs(item.length - track_info.length) > \
|
||||
weights['track_length_grace'].as_number():
|
||||
rec = max_rec['tracklength']
|
||||
|
||||
# Track number differs.
|
||||
|
|
|
|||
Loading…
Reference in a new issue