From 896d486711b3bdfee8c7317cdb1f28bd078bc614 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 2 Jan 2010 20:28:47 +0100 Subject: better metadata handling in adplug plugin --- plugins/adplug/adplug-db.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/adplug/adplug-db.cpp') 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); } -- cgit v1.2.3