2016-09-10 01:44:10 +02:00
|
|
|
diff --git a/beetsplug/keyfinder.py b/beetsplug/keyfinder.py
|
2016-11-28 08:52:26 +01:00
|
|
|
index 34a4abc..59e8539 100644
|
2016-09-10 01:44:10 +02:00
|
|
|
--- a/beetsplug/keyfinder.py
|
|
|
|
+++ b/beetsplug/keyfinder.py
|
|
|
|
@@ -30,7 +30,7 @@ class KeyFinderPlugin(BeetsPlugin):
|
|
|
|
def __init__(self):
|
|
|
|
super(KeyFinderPlugin, self).__init__()
|
|
|
|
self.config.add({
|
|
|
|
- u'bin': u'KeyFinder',
|
|
|
|
+ u'bin': u'keyfinder-cli',
|
|
|
|
u'auto': True,
|
|
|
|
u'overwrite': False,
|
|
|
|
})
|
2016-11-28 08:52:26 +01:00
|
|
|
@@ -59,8 +59,7 @@ class KeyFinderPlugin(BeetsPlugin):
|
2016-09-10 01:44:10 +02:00
|
|
|
continue
|
|
|
|
|
|
|
|
try:
|
2016-11-28 08:52:26 +01:00
|
|
|
- output = util.command_output([bin, '-f',
|
|
|
|
- util.syspath(item.path)])
|
|
|
|
+ output = util.command_output([bin, util.syspath(item.path)])
|
2016-09-10 01:44:10 +02:00
|
|
|
except (subprocess.CalledProcessError, OSError) as exc:
|
|
|
|
self._log.error(u'execution failed: {0}', exc)
|
2016-11-28 08:52:26 +01:00
|
|
|
continue
|
2016-09-10 01:44:10 +02:00
|
|
|
diff --git a/test/test_keyfinder.py b/test/test_keyfinder.py
|
2016-11-28 08:52:26 +01:00
|
|
|
index 57e2bcd..c1ee916 100644
|
2016-09-10 01:44:10 +02:00
|
|
|
--- a/test/test_keyfinder.py
|
|
|
|
+++ b/test/test_keyfinder.py
|
2016-11-28 08:52:26 +01:00
|
|
|
@@ -44,7 +44,7 @@ class KeyFinderTest(unittest.TestCase, TestHelper):
|
2016-09-10 01:44:10 +02:00
|
|
|
item.load()
|
|
|
|
self.assertEqual(item['initial_key'], 'C#m')
|
2016-11-28 08:52:26 +01:00
|
|
|
command_output.assert_called_with(
|
2016-09-10 01:44:10 +02:00
|
|
|
- ['KeyFinder', '-f', util.syspath(item.path)])
|
|
|
|
+ ['keyfinder-cli', util.syspath(item.path)])
|
|
|
|
|
2016-11-28 08:52:26 +01:00
|
|
|
def test_add_key_on_import(self, command_output):
|
|
|
|
command_output.return_value = 'dbm'
|