mirror of
https://github.com/beetbox/beets.git
synced 2026-01-10 01:50:34 +01:00
fix lastid bug when plurality artist name was None
This commit is contained in:
parent
68b051f8a0
commit
5cab0ede24
3 changed files with 9 additions and 4 deletions
4
NEWS
4
NEWS
|
|
@ -1,3 +1,7 @@
|
|||
1.0b6
|
||||
-----
|
||||
* Fix crash in lastid when the artist name is not available.
|
||||
|
||||
1.0b5
|
||||
-----
|
||||
* A new plugin, "lastid", adds Last.fm acoustic fingerprinting support
|
||||
|
|
|
|||
|
|
@ -108,9 +108,10 @@ class LastIdPlugin(BeetsPlugin):
|
|||
|
||||
# Compare artist to MusicBrainz metadata.
|
||||
dist, dist_max = 0.0, 0.0
|
||||
dist += autotag.string_dist(last_artist, info['artist']) \
|
||||
* autotag.ARTIST_WEIGHT
|
||||
dist_max += autotag.ARTIST_WEIGHT
|
||||
if last_artist:
|
||||
dist += autotag.string_dist(last_artist, info['artist']) \
|
||||
* autotag.ARTIST_WEIGHT
|
||||
dist_max += autotag.ARTIST_WEIGHT
|
||||
|
||||
log.debug('Last artist (%s/%s) distance: %f' %
|
||||
(last_artist, info['artist'], dist/dist_max))
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -22,7 +22,7 @@ def _read(fn):
|
|||
return open(path).read()
|
||||
|
||||
setup(name='beets',
|
||||
version='1.0b5',
|
||||
version='1.0b6',
|
||||
description='music tagger and library organizer',
|
||||
author='Adrian Sampson',
|
||||
author_email='adrian@radbox.org',
|
||||
|
|
|
|||
Loading…
Reference in a new issue