summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/jamendo/jamendo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/jamendo/jamendo.py b/src/plugins/jamendo/jamendo.py
index 5619cf3b..6b7082f6 100644
--- a/src/plugins/jamendo/jamendo.py
+++ b/src/plugins/jamendo/jamendo.py
@@ -287,7 +287,7 @@ class JamendoPlugin(gobject.GObject, Peas.Activatable, PeasGtk.Configurable):
# track title
# Translators: this is the title of a track in Python format
# (first argument is the track number, second is the track title)
- tt = ('<small>%s</small>' % _(u'%02d. %s')) % \
+ tt = (u'<small>%s</small>' % _(u'%02d. %s')) % \
(i+1, self._format_str(track['name']))
# track duration
td = self._format_duration(track['duration'])
@@ -603,7 +603,7 @@ class JamendoPlugin(gobject.GObject, Peas.Activatable, PeasGtk.Configurable):
if not st:
return ''
try:
- return escape(st.encode('utf8'))
+ return escape (unicode (st))
except:
return st