[mpd] support "file" argument in list command

This commit is contained in:
chme
2015-05-30 05:31:54 +02:00
parent 4299de5ac7
commit 2a04740ca2
3 changed files with 47 additions and 20 deletions

View File

@@ -287,6 +287,7 @@ static const char *sort_clause[] =
"ORDER BY f.composer_sort ASC",
"ORDER BY f.disc ASC",
"ORDER BY f.track ASC",
"ORDER BY f.virtual_path ASC",
};
static char *db_path;
@@ -1529,6 +1530,10 @@ db_query_start(struct query_params *qp)
ret = db_build_query_browse(qp, "track", "track", &query);
break;
case Q_BROWSE_VPATH:
ret = db_build_query_browse(qp, "virtual_path", "virtual_path", &query);
break;
case Q_COUNT_ITEMS:
ret = db_build_query_count_items(qp, &query);
break;