summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-05 12:53:53 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-05 12:53:53 +0200
commitbadbffa10aa45a1010700a02a12f1f14e04ef472 (patch)
tree99214cf803c61ef3fb6790f1dd23607bdcbaf6ec
parentfc290eb857e8111d6abf28f5147b5e8d85db0997 (diff)
few tweaks to psf metadata
-rw-r--r--plugins/ao/plugin.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/ao/plugin.c b/plugins/ao/plugin.c
index fda8697b..6b9cd468 100644
--- a/plugins/ao/plugin.c
+++ b/plugins/ao/plugin.c
@@ -291,6 +291,7 @@ aoplug_insert (DB_playItem_t *after, const char *fname) {
if (sscanf (info.info[i], "%d:%d", &min, &sec) == 2) {
duration = min * 60 + sec;
}
+ aoplug_add_meta (it, NULL, info.info[i], info.title[i]);
}
else if (!strncasecmp (info.title[i], "Name: ", 6) || !strncasecmp (info.title[i], "Song: ", 6)) {
aoplug_add_meta (it, "title", info.info[i], info.title[i]);
@@ -305,16 +306,13 @@ aoplug_insert (DB_playItem_t *after, const char *fname) {
aoplug_add_meta (it, "copyright", info.info[i], info.title[i]);
}
else if (!strncasecmp (info.title[i], "Year: ", 6)) {
- aoplug_add_meta (it, "date", info.info[i], info.title[i]);
+ aoplug_add_meta (it, "year", info.info[i], info.title[i]);
}
- else if (!strncasecmp (info.title[i], "Year: ", 6)) {
- aoplug_add_meta (it, "date", info.info[i], info.title[i]);
+ else if (!strncasecmp (info.title[i], "Ripper: ", 8)) {
+ aoplug_add_meta (it, "vendor", info.info[i], info.title[i]);
}
else {
aoplug_add_meta (it, NULL, info.info[i], info.title[i]);
-// char s[1024];
-// snprintf (s, sizeof (s), "%s%s", info.title[i], info.info[i]);
-// deadbeef->pl_append_meta (it, "comment", s);
}
}
}