From a4100a28a59502755fee9f7c6a9b04bf8aa38212 Mon Sep 17 00:00:00 2001 From: RollingStar Date: Wed, 16 Jan 2019 17:56:27 -0500 Subject: [PATCH] More verbose move message --- beets/ui/commands.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 1ed03bb9e..0182369b6 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1490,18 +1490,23 @@ def move_items(lib, dest, query, copy, album, pretend, confirm=False, """ items, albums = _do_query(lib, query, album, False) objs = albums if album else items + num_objs = len(objs) # Filter out files that don't need to be moved. isitemmoved = lambda item: item.path != item.destination(basedir=dest) isalbummoved = lambda album: any(isitemmoved(i) for i in album.items()) objs = [o for o in objs if (isalbummoved if album else isitemmoved)(o)] - + num_unmoved = num_objs - len(objs) + unmoved_msg = u'' + if num_unmoved > 0: + unmoved_msg = u' ({} already in place)'.format(num_unmoved) + copy = copy or export # Exporting always copies. action = u'Copying' if copy else u'Moving' act = u'copy' if copy else u'move' entity = u'album' if album else u'item' - log.info(u'{0} {1} {2}{3}.', action, len(objs), entity, - u's' if len(objs) != 1 else u'') + log.info(u'{0} {1} {2}{3}{4}.', action, len(objs), entity, + u's' if len(objs) != 1 else u'', unmoved_msg) if not objs: return