diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-02 20:28:47 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-02 20:28:47 +0100 |
commit | 896d486711b3bdfee8c7317cdb1f28bd078bc614 (patch) | |
tree | faa9aadd8a837ae1ea1fb690307217976027e6dc | |
parent | dd08ac224663e19045fffe745a80916d8c14d125 (diff) |
better metadata handling in adplug plugin
-rw-r--r-- | plugins/adplug/adplug-db.cpp | 10 |
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); } |