From 1f0eadd3af54568faccbd89718dfb92f07a4c779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Lalinsk=C3=BD?= Date: Mon, 3 Dec 2012 19:24:12 +0100 Subject: [PATCH] Ignore non-ASCII characters in the UFID frame --- picard/formats/id3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/formats/id3.py b/picard/formats/id3.py index c2933bfe5..efb13f8fd 100644 --- a/picard/formats/id3.py +++ b/picard/formats/id3.py @@ -200,7 +200,7 @@ class ID3File(File): name += ':%s' % frame.desc metadata.add(name, unicode(frame.text)) elif frameid == 'UFID' and frame.owner == 'http://musicbrainz.org': - metadata['musicbrainz_trackid'] = unicode(frame.data) + metadata['musicbrainz_trackid'] = frame.data.decode('ascii', 'ignore') elif frameid == 'TRCK': value = frame.text[0].split('/') if len(value) > 1: