mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 15:03:22 +01:00
fix some (suprisingly few) airplane-coding bugs
This commit is contained in:
parent
ac9c2e6b19
commit
86b1f92824
2 changed files with 8 additions and 4 deletions
|
|
@ -217,8 +217,12 @@ class ImportTask(object):
|
|||
if choice == action.SKIP:
|
||||
self.items = None # Items no longer needed.
|
||||
else:
|
||||
info, items = choice
|
||||
self.items = items # Reordered items list.
|
||||
assert not isinstance(choice, action)
|
||||
if self.is_album:
|
||||
info, items = choice
|
||||
self.items = items # Reordered items list.
|
||||
else:
|
||||
info = choice
|
||||
self.info = info
|
||||
self.choice_flag = action.APPLY # Implicit choice.
|
||||
|
||||
|
|
@ -487,7 +491,7 @@ def item_query(config):
|
|||
while True:
|
||||
task = yield task
|
||||
choice = config.choose_item_func(task, config)
|
||||
task.set_choice(choice)
|
||||
task.set_choice([choice])
|
||||
|
||||
def item_progress(config):
|
||||
"""Skips the lookup and query stages in a non-autotagged singleton
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ def choose_candidate(candidates, singleton, rec, color,
|
|||
# Display list of candidates.
|
||||
if singleton:
|
||||
print_('Finding tags for track "%s - %s".' %
|
||||
(item.artist, item.album))
|
||||
(item.artist, item.title))
|
||||
print_('Candidates:')
|
||||
for i, (dist, info) in enumerate(candidates):
|
||||
print_('%i. %s - %s (%s)' % (i+1, info['artist'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue