Cannot read ID3 tag from mutagen in Tag&Rename

Viewed 17

I have a weird problem writing an ID3 tag to an MP3 file with mutagen.

More specifically the album sort tag (TSOA).

The code I am using:

from mutagen.id3 import ID3, TSOA
audio = ID3("sample.mp3")
audio.add(TSOA(encoding=1, text=u"Great Album, A"))
audio.save()

The result:

>> import mutagen
>> print(mutagen.File("sample.mp3"))

{'TSOA': TSOA(encoding=<Encoding.UTF16: 1>, text=['Great Album, A'])}

However, if I open the file in Tag&Rename 3.9.15 (latest), the field is empty.

enter image description here

Strangely, even if I write the tag with Tag&Rename and inspect the file with mutagen the result is exactly the same as with the Python code I used. That is {'TSOA': TSOA(encoding=<Encoding.UTF16: 1>, text=['Great Album, A'])}.

Is this a flaw in the Tag&Rename software, or am I missing something? Foobar2000 seems to be able to get the value. I did manage to get most of the other tags to work this way.

0 Answers
Related