mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 16:02:53 +01:00
Fix some confusing indentation
This commit is contained in:
parent
864aa11ec5
commit
1fbbcf65fd
1 changed files with 17 additions and 17 deletions
|
|
@ -69,26 +69,26 @@ class EmbedCoverArtPlugin(BeetsPlugin):
|
|||
|
||||
def _confirmation(items, opts):
|
||||
# Confirm artwork changes to library items.
|
||||
if not opts.yes:
|
||||
# Prepare confirmation with user.
|
||||
print_()
|
||||
if not opts.yes:
|
||||
# Prepare confirmation with user.
|
||||
print_()
|
||||
|
||||
fmt = u'$albumartist - $album'
|
||||
istr = u'album'
|
||||
if opts.file:
|
||||
fmt = u'$albumartist - $album - $title'
|
||||
istr = u'file'
|
||||
prompt = u'Modify artwork for %i %s%s (y/n)?' % \
|
||||
(len(items), istr, 's' if len(items) > 1 else '')
|
||||
fmt = u'$albumartist - $album'
|
||||
istr = u'album'
|
||||
if opts.file:
|
||||
fmt = u'$albumartist - $album - $title'
|
||||
istr = u'file'
|
||||
prompt = u'Modify artwork for %i %s%s (y/n)?' % \
|
||||
(len(items), istr, 's' if len(items) > 1 else '')
|
||||
|
||||
# Show all the items.
|
||||
for item in items:
|
||||
print_(format(item, fmt))
|
||||
# Show all the items.
|
||||
for item in items:
|
||||
print_(format(item, fmt))
|
||||
|
||||
# Confirm with user.
|
||||
if not ui.input_yn(prompt, True):
|
||||
return False
|
||||
return True
|
||||
# Confirm with user.
|
||||
if not ui.input_yn(prompt, True):
|
||||
return False
|
||||
return True
|
||||
|
||||
def embed_func(lib, opts, args):
|
||||
if opts.file:
|
||||
|
|
|
|||
Loading…
Reference in a new issue