From 1fbbcf65fde067bd753907dc18218acc3f7dddee Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 6 Mar 2017 23:29:09 -0500 Subject: [PATCH] Fix some confusing indentation --- beetsplug/embedart.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index 6344dc2b9..f7e92e6f1 100644 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -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: