diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-25 11:18:45 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-25 11:18:45 +0200 |
commit | 0505cb8f7e2f96f2fc7c993d0673b54648d52582 (patch) | |
tree | 31e7394854a6b22dc68ce665c1ee44d01b07bdb2 /src/command | |
parent | 2cfccc1c34224cc96b6e595b875180e3a9730c43 (diff) |
db/Print: move code to PrintSongUris()
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/DatabaseCommands.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command/DatabaseCommands.cxx b/src/command/DatabaseCommands.cxx index 746dfcb50..d9ff60316 100644 --- a/src/command/DatabaseCommands.cxx +++ b/src/command/DatabaseCommands.cxx @@ -285,8 +285,11 @@ handle_list(Client &client, Request args, Response &r) return CommandResult::ERROR; } - PrintUniqueTags(r, client.GetPartition(), - tagType, group_mask, filter.get()); + if (tagType == LOCATE_TAG_FILE_TYPE) + PrintSongUris(r, client.GetPartition(), filter.get()); + else + PrintUniqueTags(r, client.GetPartition(), + tagType, group_mask, filter.get()); return CommandResult::OK; } |