decode bytes from .encode() in lyrics plugin

This commit is contained in:
Johnny Robeson 2016-06-14 00:44:43 -04:00
parent 0f4b907ff5
commit 8fa71f78fe

View file

@ -503,7 +503,7 @@ class Google(Backend):
try:
text = unicodedata.normalize('NFKD', text).encode('ascii',
'ignore')
text = unicode(re.sub('[-\s]+', ' ', text))
text = unicode(re.sub('[-\s]+', ' ', text.decode('utf-8')))
except UnicodeDecodeError:
self._log.exception(u"Failing to normalize '{0}'", text)
return text