mirror of
https://github.com/beetbox/beets.git
synced 2026-01-18 14:11:35 +01:00
Merge pull request #810 from brunal/show-path-on-delete
Show file path when deleting items
This commit is contained in:
commit
3056da2d1d
1 changed files with 9 additions and 5 deletions
|
|
@ -1056,17 +1056,21 @@ def remove_items(lib, query, album, delete):
|
|||
# Get the matching items.
|
||||
items, albums = _do_query(lib, query, album)
|
||||
|
||||
# Show all the items.
|
||||
for item in items:
|
||||
ui.print_obj(item, lib)
|
||||
|
||||
# Confirm with user.
|
||||
# Prepare confirmation with user.
|
||||
print_()
|
||||
if delete:
|
||||
fmt = u'$path - $title'
|
||||
prompt = 'Really DELETE %i files (y/n)?' % len(items)
|
||||
else:
|
||||
fmt = None
|
||||
prompt = 'Really remove %i items from the library (y/n)?' % \
|
||||
len(items)
|
||||
|
||||
# Show all the items.
|
||||
for item in items:
|
||||
ui.print_obj(item, lib, fmt)
|
||||
|
||||
# Confirm with user
|
||||
if not ui.input_yn(prompt, True):
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue