mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 19:42:42 +01:00
decode bytes from .encode() in lyrics plugin
This commit is contained in:
parent
0f4b907ff5
commit
8fa71f78fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue