Fix #2537: keyfinder uses imported_items()

This commit is contained in:
Adrian Sampson 2018-04-29 13:45:39 -04:00
parent e8190b5c1a
commit f1d5c2f398
2 changed files with 3 additions and 1 deletions

View file

@ -48,7 +48,7 @@ class KeyFinderPlugin(BeetsPlugin):
self.find_key(lib.items(ui.decargs(args)), write=ui.should_write())
def imported(self, session, task):
self.find_key(task.items)
self.find_key(task.imported_items())
def find_key(self, items, write=False):
overwrite = self.config['overwrite'].get(bool)

View file

@ -103,6 +103,8 @@ Fixes:
to which a track belongs, not the total number of different mediums present
on the release. :bug:`2887`
Thanks to :user:`dbogdanov`.
* :doc:`/plugins/keyfinder`: Avoid a crash when trying to process unmatched
tracks. :bug:`2537`
For developers: