diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-01-11 09:19:41 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-01-11 09:19:41 +0100 |
commit | 82fb2128be98f04ab403f192d5a42c7e2075d8f5 (patch) | |
tree | 9522e36a88ef19cceebf95a611c5989cfd9f275d | |
parent | 98a1aadf64241132d5ef1f44fe5105099cfaa918 (diff) |
mpclient: status['error'] must be a unicode string
because it can contain song names.
-rw-r--r-- | nephilim/mpclient.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py index f0cf186..6a98a96 100644 --- a/nephilim/mpclient.py +++ b/nephilim/mpclient.py @@ -75,7 +75,7 @@ class MPDStatus(dict): 'nextsong' : -1, 'nextsongid' : '-1', 'time' : '0:0', 'elapsed' : .0, 'bitrate' : 0, 'xfade' : 0, 'mixrampdb' : .0, 'mixrampdelay' : .0, 'audio' : '0:0:0', - 'updatings_db' : -1, 'error' : '', 'random' : 0 } + 'updatings_db' : -1, 'error' : u'', 'random' : 0 } def __init__(self, data = {}): dict.__init__(self, MPDStatus._status) |