diff --git a/beetsplug/check.py b/beetsplug/check.py index 37b74d9..d48d2b1 100644 --- a/beetsplug/check.py +++ b/beetsplug/check.py @@ -535,7 +535,7 @@ def check(self, item): if not self.can_check(item): return process = Popen( - self.cmdline.format(self.shellquote(syspath(item.path).decode("utf-8"))), + self.cmdline.format(self.shellquote(item.path.decode("utf-8"))), shell=True, stdin=PIPE, stdout=PIPE, @@ -555,8 +555,9 @@ def can_fix(self, item): return self.can_check(item) and self.fixcmd def fix(self, item): + assert isinstance(self.fixcmd, str) check_call( - self.fixcmd.format(self.shellquote(syspath(item.path).decode("utf-8"))), + self.fixcmd.format(self.shellquote(item.path.decode("utf-8"))), shell=True, stdin=PIPE, stdout=PIPE,