[mythtv] MythMusic Incorrect Genre Database Entries

m0j0.j0j0 m0j0 at foofus.net
Mon Oct 27 01:20:28 EST 2003


I've noticed that certain mp3s end up being put into my Myth database
with doubled genres, such as "AlternativeAlternative".

I threw in a couple of print statements in maddecoder.cpp and got the
following:

MAD DECODEER
LATIN1: song1
LATIN1: artist1
LATIN1: TEST_ALBUM
LATIN1: 2003
LATIN1: 01
LATIN1: A Cappella
LATIN1: A Capella
GENRE: A CappellaA Capella

I'm confused by the two different genres listed with the above file.
EasyTag only shows the second "A Capella" [sic]. A lot of the files have
two matching genre lines. 

I'm clueless as to why there are two genre tags being found in some of
my files, but the following change at least makes my database work a
little nicer... 


Index: mythmusic/maddecoder.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythmusic/mythmusic/maddecoder.cpp,v
retrieving revision 1.13
diff -u -r1.13 maddecoder.cpp
--- mythmusic/maddecoder.cpp    10 Sep 2003 00:21:45 -0000      1.13
+++ mythmusic/maddecoder.cpp    27 Oct 2003 04:57:29 -0000
@@ -615,7 +615,8 @@
                                 year = atoi((char *)latin1); break;
                     case 4: if (tracknum == 0)
                                 tracknum = atoi((char *)latin1); break;
-                    case 5: genre += (char *)latin1; break;
+                    case 5: if (genre == "")
+                                genre = (char *)latin1; break;
                     default: break;
                 }


Joe



More information about the mythtv-dev mailing list