at 18.03-beta 36 lines 1.5 kB view raw
1diff --git a/beetsplug/keyfinder.py b/beetsplug/keyfinder.py 2index 34a4abc..59e8539 100644 3--- a/beetsplug/keyfinder.py 4+++ b/beetsplug/keyfinder.py 5@@ -30,7 +30,7 @@ class KeyFinderPlugin(BeetsPlugin): 6 def __init__(self): 7 super(KeyFinderPlugin, self).__init__() 8 self.config.add({ 9- u'bin': u'KeyFinder', 10+ u'bin': u'keyfinder-cli', 11 u'auto': True, 12 u'overwrite': False, 13 }) 14@@ -59,8 +59,7 @@ class KeyFinderPlugin(BeetsPlugin): 15 continue 16 17 try: 18- output = util.command_output([bin, '-f', 19- util.syspath(item.path)]) 20+ output = util.command_output([bin, util.syspath(item.path)]) 21 except (subprocess.CalledProcessError, OSError) as exc: 22 self._log.error(u'execution failed: {0}', exc) 23 continue 24diff --git a/test/test_keyfinder.py b/test/test_keyfinder.py 25index 57e2bcd..c1ee916 100644 26--- a/test/test_keyfinder.py 27+++ b/test/test_keyfinder.py 28@@ -44,7 +44,7 @@ class KeyFinderTest(unittest.TestCase, TestHelper): 29 item.load() 30 self.assertEqual(item['initial_key'], 'C#m') 31 command_output.assert_called_with( 32- ['KeyFinder', '-f', util.syspath(item.path)]) 33+ ['keyfinder-cli', util.syspath(item.path)]) 34 35 def test_add_key_on_import(self, command_output): 36 command_output.return_value = 'dbm'