db/Print: move code to PrintSongUris()

This commit is contained in:
Max Kellermann
2018-07-25 11:18:45 +02:00
parent 2cfccc1c34
commit 0505cb8f7e
3 changed files with 30 additions and 16 deletions

View File

@@ -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;
}