summaryrefslogtreecommitdiff
path: root/junklib.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-01-08 15:52:00 +0100
committerGravatar waker <wakeroid@gmail.com>2011-01-08 15:52:00 +0100
commit9fe9bffd850c69045b3bc035c71f0bcb0ab4d60f (patch)
tree54e02191c33a3b5c4cc2b8d13494e17118b4aa42 /junklib.c
parent6436ca49a36dd8c0dd5c96dc8752c545bcdbfe5c (diff)
junklib: read all APE and TXX fields
Diffstat (limited to 'junklib.c')
-rw-r--r--junklib.c13
1 files changed, 5 insertions, 8 deletions
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);
}
}