Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion beets/autotag/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion beets/ui/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down