Re: [Easytag-mailing] easytag genres



I had the same problem when using EasyTag with my Sansa Fuze.

It happens when you choose ID3 v2.3 instead of v2.4. I looked into the source code and EasyTag does handle it technically correct according to specs but not in the preferred way. I reported it to this list some months ago but it was ignored (maybe because the list wasn't working properly, I'm not sure).

I use this short Python script to fix all the Genre tags when this problem occurs. It needs the mutagen.easyid3 module (which can be found via Google). My script here will recurse down directories and rewrite tags for problem files.

Chris :)

#!/usr/bin/env python

from mutagen.easyid3 import EasyID3
import os, sys

for arg in sys.argv[1:]:
    for root, dirs, files in os.walk(arg):
        for filename in [e for e in files if e.lower().endswith('.mp3')]:
            try:
                mp3 = EasyID3(root+'/'+filename)
                print root+'/'+mp3['title'][0].encode(), ':', mp3['genre'][0].encode()
                mp3.save()
            except Exception, err:
                print '*** '+root+'/'+filename+' *** mp3 tag error ***', err



Isaac Witmer wrote:
Is there anyway I can strip the files and then write the tags without loosing them and manually going through all 800 files?


On Wed, Jun 16, 2010 at 1:54 PM, Mark Ferry <mark markferry net> wrote:
On 16/06/2010, Isaac Witmer <isaaclw gmail com> wrote:
> When I tag music "Electronic" or "Hip-Hop" etc., it seems that it's marking
> it as a predefined genre (hence the drop down list).
> When I browse my Walkman instead of having plain text genres, it instead has
> numbers (it turns out Electronic = 52 and Hip-Hop = 7).
>
Sounds like it's picking up the ID3v1 tag.
Try disabling the option to write ID3v1 tags in the ID3 tags settings.
You probably have to strip files you've already tagged with ID3v1.

- Mark


------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________ Easytag-mailing mailing list Easytag-mailing lists sourceforge net https://lists.sourceforge.net/lists/listinfo/easytag-mailing


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]