summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-02 20:28:47 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-02 20:28:47 +0100
commit896d486711b3bdfee8c7317cdb1f28bd078bc614 (patch)
treefaa9aadd8a837ae1ea1fb690307217976027e6dc /plugins
parentdd08ac224663e19045fffe745a80916d8c14d125 (diff)
better metadata handling in adplug plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/adplug/adplug-db.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/adplug/adplug-db.cpp b/plugins/adplug/adplug-db.cpp
index 9ba5cb8d..d8d252b2 100644
--- a/plugins/adplug/adplug-db.cpp
+++ b/plugins/adplug/adplug-db.cpp
@@ -221,13 +221,15 @@ adplug_insert (DB_playItem_t *after, const char *fname) {
if (!p->gettitle().empty()) {
deadbeef->pl_add_meta (it, "title", p->gettitle().c_str());
}
- else if (!p->getdesc().empty()) {
- deadbeef->pl_add_meta (it, "title", p->getdesc().c_str());
- }
else {
deadbeef->pl_add_meta (it, "title", NULL);
}
- deadbeef->pl_add_meta (it, "artist", p->getauthor().c_str());
+ if (!p->getdesc().empty()) {
+ deadbeef->pl_add_meta (it, "comment", p->getdesc().c_str());
+ }
+ if (!p->getauthor().empty()) {
+ deadbeef->pl_add_meta (it, "artist", p->getauthor().c_str());
+ }
// insert
after = deadbeef->pl_insert_item (after, it);
}