From 7baf41827d04cfb6f192105a219d595a3dd45d70 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 22 Mar 2011 20:21:48 -0700 Subject: [PATCH] log duplicate albums during import (#141) --- NEWS | 1 + beets/ui/commands.py | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS b/NEWS index ba0e39fad..fa449b01c 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,7 @@ * When importing with the "delete" option and importing files that are already at their destination, files could be deleted (leaving zero copies afterward). This is fixed. +* "import -l" now logs duplicate albums. * Fix a bug where some files would be erroneously interpreted as MP4. * Fix permission bits applied to album art files. * Fix malformed MusicBrainz queries caused by null characters. diff --git a/beets/ui/commands.py b/beets/ui/commands.py index e79c10528..9ace1cab1 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -435,6 +435,7 @@ def user_query(lib, logfile=None, color=True, quiet=False): library.MatchQuery('album', album))) count, _ = q.count(lib) if count >= 1: + tag_log(logfile, 'duplicate', path) print_("This album (%s - %s) is already in the library!" % (artist, album)) out = toppath, path, items, None