From 82fb2128be98f04ab403f192d5a42c7e2075d8f5 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 11 Jan 2011 09:19:41 +0100 Subject: mpclient: status['error'] must be a unicode string because it can contain song names. --- nephilim/mpclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3