leosongwei / mutagen

Automatically exported from code.google.com/p/mutagen
GNU General Public License v2.0
0 stars 0 forks source link

APEv2: Saving tag removes ID3v1 #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Mutagen version: 1.19

The following code sequence:

    meta = APEv2("test.mp3")
    print meta.keys()
    meta.pprint()
    meta.save()

applied to mp3 files containing an APE tag seems to produce errors:
    (1) meta.pprint() does not print anything although there is a tag (meta.keys() works).
    (2) meta.save() stores the tag at the end of the file also removing the ID3v1 tag, that is supposed to be there.

Original issue reported on code.google.com by m3o....@googlemail.com on 25 Nov 2010 at 4:17

GoogleCodeExporter commented 9 years ago
This is intentional; both APEv2 and ID3v1 require being placed at the end of 
files, and either one can unintentionally look like the other. There's no way 
to have both correctly.

This is already documented in mutagen.apev2.APEv2.

pprint returns a string, which is why you don't see it.

Putting APEv2 tags on your MP3s is a bad idea anyway.

Original comment by joe.wreschnig@gmail.com on 25 Nov 2010 at 6:05

GoogleCodeExporter commented 9 years ago

Original comment by joe.wreschnig@gmail.com on 25 Nov 2010 at 6:06