Skip to content

Commit

Permalink
Fix #2537: keyfinder uses imported_items()
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Apr 29, 2018
1 parent e8190b5 commit f1d5c2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/keyfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def command(self, lib, opts, args):
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)
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f1d5c2f

Please sign in to comment.