nixpkgs/pkgs/tools/audio/beets/keyfinder-default-bin.patch

35 lines
1.4 KiB
Diff

diff --git a/beetsplug/keyfinder.py b/beetsplug/keyfinder.py
index b6131a4..b493792 100644
--- 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,
})
@@ -59,7 +59,7 @@ class KeyFinderPlugin(BeetsPlugin):
continue
try:
- output = util.command_output([bin, b'-f',
+ output = util.command_output([bin,
util.syspath(item.path)])
except (subprocess.CalledProcessError, OSError) as exc:
self._log.error(u'execution failed: {0}', exc)
diff --git a/test/test_keyfinder.py b/test/test_keyfinder.py
index 00952fe..01ff8d4 100644
--- a/test/test_keyfinder.py
+++ b/test/test_keyfinder.py
@@ -46,7 +46,7 @@ class KeyFinderTest(unittest.TestCase, TestHelper):
item.load()
self.assertEqual(item['initial_key'], 'C#m')
self.command_output.assert_called_with(
- ['KeyFinder', '-f', util.syspath(item.path)])
+ ['keyfinder-cli', util.syspath(item.path)])
def test_add_key_on_import(self):
self.command_output.return_value = 'dbm'