From 9fe9bffd850c69045b3bc035c71f0bcb0ab4d60f Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 8 Jan 2011 15:52:00 +0100 Subject: junklib: read all APE and TXX fields --- junklib.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'junklib.c') diff --git a/junklib.c b/junklib.c index 1a54196e..2b64ee59 100644 --- a/junklib.c +++ b/junklib.c @@ -827,6 +827,9 @@ junk_apev2_add_frame (playItem_t *it, DB_apev2_tag_t *tag_store, DB_apev2_frame_ it->replaygain_track_peak = atof (value); trace ("track_peak=%s\n", value); } + else { + pl_append_meta (it, key, value);; + } } } } @@ -2511,14 +2514,8 @@ junk_id3v2_load_txx (int version_major, playItem_t *it, uint8_t *readptr, int sy else if (!strcasecmp (txx, "replaygain_track_peak")) { it->replaygain_track_peak = atof (val); } - else if (!strcasecmp (txx, "performer")) { - pl_replace_meta (it, "performer", val); - } - else if (!strcasecmp (txx, "album artist")) { - pl_replace_meta (it, "band", val); - } - else if (!strcasecmp (txx, "date")) { - pl_replace_meta (it, "year", val); + else { + pl_append_meta (it, txx, val); } } -- cgit v1.2.3