From 4de44590d01ef7c9889edee546d7668bb134dfd9 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 28 Sep 2010 10:29:07 -0700 Subject: [PATCH] progress display for non-autotagged imports --- NEWS | 2 ++ beets/ui/__init__.py | 2 +- beets/ui/commands.py | 3 ++- test/test_ui.py | 1 - 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 7a04d6b16..f1e49d048 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,8 @@ * The "import" command can now remove original files when it copies items into your library. (This might be useful if you're low on disk space.) Set the "import_delete" option in your .beetsconfig to "yes". +* Importing without autotagging ("beet import -A") now prints out album + names as it imports them to indicate progress. * There's a new "mpdupdate" plugin that will automatically update your MPD index whenever your beets library changes. Documentation on this is forthcoming as well. diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index 8209ac3e6..2e64f67b2 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -445,7 +445,7 @@ def main(): if options.verbose: log.setLevel(logging.DEBUG) else: - log.setLevel(logging.WARNING) + log.setLevel(logging.INFO) # Invoke the subcommand. try: diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 7503fbc40..fd3e1b167 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -519,11 +519,12 @@ def import_files(lib, paths, copy, write, autot, logpath, old_paths = [item.path for item in items] for item in items: item.move(lib, True) - lib.add_album(items) + album = lib.add_album(items) lib.save() if copy and delete: for old_path in old_paths: os.remove(old_path) + log.info('added album: %s - %s' % (album.artist, album.album)) # If we were logging, close the file. if logfile: diff --git a/test/test_ui.py b/test/test_ui.py index 8217597da..79688df45 100644 --- a/test/test_ui.py +++ b/test/test_ui.py @@ -87,4 +87,3 @@ def suite(): if __name__ == '__main__': unittest.main(defaultTest='suite') -