Comment 2 for bug 410929

Revision history for this message
JThundley (jthundley) wrote :

Here's a patch that seems to fix it for your affected file. I don't know if my tiny patch will cause other problems with the program, as I've never used this program before.

The problem seems to be that the TCON tag of that mp3 file is represented as completely blank by mutagen.id3 (i.e. []) where instead an empty tag should always be an empty string (i.e. [u''])

The thing I can't figure out is why the map function on line 76 returns an empty list.

>>> isascii(text)
True
>>> text
[]
>>> isascii(text)
True
>>> map(isascii, text)
[]

Shouldn't map return [True] instead of []?