From 430595825f624e00cf7cb4a86bd8568fd02257a3 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 6 Mar 2017 23:37:04 -0500 Subject: [PATCH] Rename parameter to be more sensible We don't just take items; they're either items or albums. --- beetsplug/embedart.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index 658b99599..c3463c1a6 100644 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -27,7 +27,7 @@ from beets import config from beets import art -def _confirmation(items, opts): +def _confirmation(objs, opts): """Show the list of affected objects (items or albums) and confirm that the user wants to modify their artwork. """ @@ -42,11 +42,11 @@ def _confirmation(items, opts): 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 '') + (len(objs), istr, 's' if len(objs) > 1 else '') - # Show all the items. - for item in items: - print_(format(item, fmt)) + # Show all the items or albums. + for obj in objs: + print_(format(obj, fmt)) # Confirm with user. if not ui.input_yn(prompt, True):