[Easytag-mailing] Bug with predefined genres in mp3



While using easytag I found that some audio players in Windows (AIMP, Winamp) doesn't show genre correctly if genre tag was written with EasyTag.
It affects only predefined genres. These players show number for predefined genres instead of string. For example "Alternative" genre => "20".
I made a little patch which solves problem:

--- easytag-2.1.6.orig/src/id3v24_tag.c    2011-04-08 23:31:20.000000000 +0300
+++ easytag-2.1.6/src/id3v24_tag.c    2011-04-08 23:32:06.753532997 +0300
@@ -913,7 +913,7 @@
     if (genre_value == ID3_INVALID_GENRE)
         string1 = g_strdup(FileTag->genre);
     else
-        string1 = g_strdup_printf("%d",genre_value);
+        string1 = g_strdup_printf("(%d)",genre_value);
 
     etag_set_tags(string1, ID3_FRAME_GENRE, ID3_FIELD_TYPE_STRINGLIST, v1tag, v2tag, &strip_tags);
     g_free(string1);

More information can be found here: https://github.com/stsquad/easytag/issues/12 (it looks like a fork of easytag).
I think, this patch must be applied once the development of easytag was not stopped.


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