Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions beetsplug/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Loading