mirror of
https://github.com/beetbox/beets.git
synced 2026-03-02 03:06:17 +01:00
merge in fixes from mdecker
This commit is contained in:
commit
67678ffcf4
2 changed files with 3 additions and 2 deletions
|
|
@ -301,7 +301,9 @@ def track_distance(item, track_data, track_index=None, incl_artist=False):
|
|||
dist_max += TRACK_TITLE_WEIGHT
|
||||
|
||||
# Track artist, if included.
|
||||
if incl_artist:
|
||||
# Attention: MB DB does not have artist info for all compilations,
|
||||
# so only check artist distance if there is actually an artist in the MB track data
|
||||
if incl_artist and 'artist' in track_data:
|
||||
dist += string_dist(item.artist, track_data['artist']) * \
|
||||
TRACK_ARTIST_WEIGHT
|
||||
dist_max += TRACK_ARTIST_WEIGHT
|
||||
|
|
|
|||
|
|
@ -532,7 +532,6 @@ def apply_choices(lib, copy, write, art, delete, progress):
|
|||
# Only delete files that were actually moved.
|
||||
if old_path not in new_paths:
|
||||
os.remove(library._syspath(old_path))
|
||||
os.remove(library._syspath(old_path))
|
||||
|
||||
# Update progress.
|
||||
if progress:
|
||||
|
|
|
|||
Loading…
Reference in a new issue