From 90c30d8564b7b31427f33c83b3933921329ec497 Mon Sep 17 00:00:00 2001 From: SpirosChadoulos Date: Thu, 4 May 2017 19:08:23 +0300 Subject: [PATCH] Added an if album: statement --- beets/ui/commands.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 36876d229..840aa0a93 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1481,8 +1481,12 @@ def move_items(lib, dest, query, copy, album, pretend, export=False, for obj in objs]) else: if export: - for obj in objs: - util.copy(obj.path, obj.destination(basedir=dest)) + if album: + util.copy([(item.path, item.destination(basedir=dest)) + for obj in objs for item in obj.items()]) + else: + util.copy([(obj.path, obj.destination(basedir=dest)) + for obj in objs]) if confirm: objs = ui.input_select_objects( u'Really %s' % act, objs,