[easytag] Add APE tag "part" constant
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Add APE tag "part" constant
- Date: Tue, 9 Jul 2013 22:43:50 +0000 (UTC)
commit 5cb7ebb2d7f46855f6b34bd84068c86b304fe748
Author: Mathias Reineke <saihtam gmx net>
Date: Mon Jul 8 10:44:19 2013 +0200
Add APE tag "part" constant
src/ape_tag.c | 6 +++---
src/libapetag/apetaglib.h | 1 +
src/libapetag/id3v2_read.c | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/ape_tag.c b/src/ape_tag.c
index 602fa64..e7953c2 100644
--- a/src/ape_tag.c
+++ b/src/ape_tag.c
@@ -91,7 +91,7 @@ gboolean Ape_Tag_Read_File_Tag (gchar *filename, File_Tag *FileTag)
/***************
* Disc Number *
***************/
- string = apefrm_getstr(ape_cnt, "Part");
+ string = apefrm_getstr (ape_cnt, APE_TAG_FIELD_PART);
if (FileTag->disc_number == NULL)
FileTag->disc_number = Try_To_Validate_Utf8_String(string);
@@ -229,9 +229,9 @@ gboolean Ape_Tag_Write_File_Tag (ET_File *ETFile)
* Disc Number *
***************/
if ( FileTag->disc_number && g_utf8_strlen(FileTag->disc_number, -1) > 0)
- apefrm_add(ape_mem, 0, "Part", FileTag->disc_number);
+ apefrm_add (ape_mem, 0, APE_TAG_FIELD_PART, FileTag->disc_number);
else
- apefrm_remove(ape_mem,"Part");
+ apefrm_remove (ape_mem, APE_TAG_FIELD_PART);
/********
* Year *
diff --git a/src/libapetag/apetaglib.h b/src/libapetag/apetaglib.h
index f7330d9..2587f6d 100644
--- a/src/libapetag/apetaglib.h
+++ b/src/libapetag/apetaglib.h
@@ -85,6 +85,7 @@
#define APE_TAG_FIELD_SUBTITLE "Subtitle"
#define APE_TAG_FIELD_ARTIST "Artist"
#define APE_TAG_FIELD_ALBUM "Album"
+#define APE_TAG_FIELD_PART "Part"
#define APE_TAG_FIELD_DEBUTALBUM "Debut Album"
#define APE_TAG_FIELD_PUBLISHER "Publisher"
#define APE_TAG_FIELD_CONDUCTOR "Conductor"
diff --git a/src/libapetag/id3v2_read.c b/src/libapetag/id3v2_read.c
index 194f65d..f5e445e 100644
--- a/src/libapetag/id3v2_read.c
+++ b/src/libapetag/id3v2_read.c
@@ -78,7 +78,7 @@ struct id3vtwo2ape convert[] = {
{ID3FID_ORIGFILENAME, ID3FN_TEXT, "Original Filename",0},
{ID3FID_ORIGLYRICIST, ID3FN_TEXT, "Original Lyricist",0},
{ID3FID_ORIGYEAR, ID3FN_TEXT, "Original Artist",0},
- {ID3FID_PARTINSET, ID3FN_TEXT, "Part",0},
+ {ID3FID_PARTINSET, ID3FN_TEXT, APE_TAG_FIELD_PART, 0},
{ID3FID_PLAYLISTDELAY, ID3FN_TEXT, "Playlist Delay",0},
{ID3FID_PUBLISHER, ID3FN_TEXT, APE_TAG_FIELD_PUBLISHER,0},
{ID3FID_RECORDINGDATES, ID3FN_TEXT, APE_TAG_FIELD_RECORDDATE,0},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]