From 1341ad9b1d39deea94ebe6614d5c14bbcec0cd77 Mon Sep 17 00:00:00 2001 From: Tom Jaspers Date: Tue, 3 Feb 2015 10:23:52 +0100 Subject: [PATCH] Importer UI: Display number of missing/unmatched tracks Fix #1088 --- beets/ui/commands.py | 8 ++++++-- docs/changelog.rst | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index d800493e5..32201f58d 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -359,14 +359,18 @@ def show_change(cur_artist, cur_album, match): # Missing and unmatched tracks. if match.extra_tracks: - print_('Missing tracks:') + print_('Missing tracks ({0}/{1} - {2:.1%}):'.format( + len(match.extra_tracks), + len(match.info.tracks), + len(match.extra_tracks) / len(match.info.tracks) + )) for track_info in match.extra_tracks: line = ' ! %s (#%s)' % (track_info.title, format_index(track_info)) if track_info.length: line += ' (%s)' % ui.human_seconds_short(track_info.length) print_(ui.colorize('text_warning', line)) if match.extra_items: - print_('Unmatched tracks:') + print_('Unmatched tracks ({0}):'.format(len(match.extra_items))) for item in match.extra_items: line = ' ! %s (#%s)' % (item.title, format_index(item)) if item.length: diff --git a/docs/changelog.rst b/docs/changelog.rst index 4ef2e1522..8dbdec5e0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -41,6 +41,7 @@ Features: properties. :bug:`1287` * A new ``filesize`` field on items indicates the number of bytes in the file. :bug:`1291` +* The number of missing/unmatched tracks is shown during import. :bug:`1088` Core changes: