mirror of
https://github.com/beetbox/beets.git
synced 2026-02-03 22:12:27 +01:00
Merge pull request #1980 from jackwilsdon/fix-hook-unicode
Use unicode for command formatting in hook plugin
This commit is contained in:
commit
02592d2c54
1 changed files with 3 additions and 1 deletions
|
|
@ -47,7 +47,9 @@ class HookPlugin(BeetsPlugin):
|
|||
self._log.error('invalid command "{0}"', command)
|
||||
return
|
||||
|
||||
formatted_command = command.format(event=event, **kwargs)
|
||||
unicode_command = command.decode('utf-8')
|
||||
formatted_command = unicode_command.format(event=event,
|
||||
**kwargs)
|
||||
encoded_command = formatted_command.decode(_arg_encoding())
|
||||
command_pieces = shlex.split(encoded_command)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue