From 90d2930aacda57538f1e9e05acc18e8e80481de3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 23 Apr 2011 16:31:43 +0100 Subject: Add option to make genre tags as "Text Only" Quoth Daniel: "I also have a patch which sets the genre tag as a string instead of the genre number. This number is not probably handled by iTunes (it shows the number, not the actual genre name). I've added it as a attachment." This is controlled by an option in the ID3 preferences tab Written-By: Daniel --- src/id3_tag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/id3_tag.c') diff --git a/src/id3_tag.c b/src/id3_tag.c index 4956179..1e9ebba 100644 --- a/src/id3_tag.c +++ b/src/id3_tag.c @@ -290,7 +290,7 @@ gboolean Id3tag_Write_File_v23Tag (ET_File *ETFile) genre_value = Id3tag_String_To_Genre(FileTag->genre); // If genre not defined don't write genre value between brackets! (priority problem noted with some tools) - if (genre_value == ID3_INVALID_GENRE) + if ((genre_value == ID3_INVALID_GENRE)||(FILE_WRITING_ID3V2_TEXT_ONLY_GENRE)) genre_string_tmp = g_strdup_printf("%s",FileTag->genre); else genre_string_tmp = g_strdup_printf("(%d)",genre_value); -- cgit v1.2.3