Merge branch 'tagtypes_reset' of https://github.com/jcorporation/MPD

This commit is contained in:
Max Kellermann
2024-11-02 20:58:06 +01:00
3 changed files with 10 additions and 1 deletions

View File

@@ -107,6 +107,10 @@ handle_tagtypes(Client &client, Request request, Response &r)
} else if (StringIsEqual(cmd, "available")) {
tag_print_types_available(r);
return CommandResult::OK;
} else if (StringIsEqual(cmd, "reset")) {
client.tag_mask = TagMask::None();
client.tag_mask |= ParseTagMask(request);
return CommandResult::OK;
} else {
r.Error(ACK_ERROR_ARG, "Unknown sub command");
return CommandResult::ERROR;