mirror of
https://github.com/beetbox/beets.git
synced 2026-11-30 22:31:17 -06:00
decode bytes from .encode() in lyrics plugin
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user