leosongwei / mutagen

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

extracting tags from multiple sources #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have mp3 files which have both ID3 and APEv2 tags in them. The keys stored in 
each tag are mutually exclusive (for some reason mp3gain prefers APEv2 by 
default). Currently mutagen decides on one tag scheme and goes with that. As 
ID3 tags are preferred over APEv2 ones, mutagen will not retrieve the replay 
gain tags unless I instruct it to grab APEv2 tags only. I ran into this problem 
while using beets, which didn’t detect my replay gain tags. exiftool detects 
tags from both schemes in one run.

It seems to be by design to only retrieve one tag scheme, but I couldn’t find 
documentation on it. Would it be possible to extract from all schemes using a 
“best/last one wins” strategy on conflicts? Solving this in beets might be 
possible, but it seems like something other consumers might profit from as well.

Original issue reported on code.google.com by stefan-g...@breunig.xyz on 12 Aug 2013 at 11:26

GoogleCodeExporter commented 9 years ago
If you're referring to mutagen.mp3.MP3, yes it defaults to ID3. You can load 
APE tags using mutagen.apev2.APEv2.

Mutagen will not help you with merging multiple tagging formats (except between 
different id3 versions). They all have a different structure and there exists 
no standardized mapping.

Original comment by reiter.christoph@gmail.com on 5 Sep 2013 at 1:18