log duplicate albums during import (#141)

This commit is contained in:
Adrian Sampson 2011-03-22 20:21:48 -07:00
parent 096816cba7
commit 7baf41827d
2 changed files with 2 additions and 0 deletions

1
NEWS
View file

@ -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.

View file

@ -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