mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 20:12:33 +01:00
Added an if album: statement
This commit is contained in:
parent
a88192240e
commit
90c30d8564
1 changed files with 6 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue