diff --git a/docs/changes.rst b/docs/changes.rst index ddb46bb8..dcbb5893 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -71,6 +71,11 @@ No description yet. any help from the original MPD server. - Support UTF-8 encoded tag caches with non-ASCII characters. +- Mixers: + + - Support use of unicode strings for :mod:`mopidy.mixers.nad` specific + settings. + - Models: - Rename and generalize ``Playlist._with(**kwargs)`` to diff --git a/mopidy/mixers/nad.py b/mopidy/mixers/nad.py index 3215a761..5cf92826 100644 --- a/mopidy/mixers/nad.py +++ b/mopidy/mixers/nad.py @@ -147,6 +147,8 @@ class NadTalker(BaseThread): return self._readline().replace('%s=' % key, '') def _command_device(self, key, value): + if type(value) == unicode: + value = value.encode('utf-8') self._write('%s=%s' % (key, value)) self._readline()