diff options
Diffstat (limited to 'plugins/adplug/adplug-db.cpp')
-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); } |