mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 17:08:12 +01:00
progress display for non-autotagged imports
This commit is contained in:
parent
7cf10d13e5
commit
4de44590d0
4 changed files with 5 additions and 3 deletions
2
NEWS
2
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.
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -87,4 +87,3 @@ def suite():
|
|||
|
||||
if __name__ == '__main__':
|
||||
unittest.main(defaultTest='suite')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue