Merge remote-tracking branch 'upstream/v0.23.x'
This commit is contained in:
@@ -46,7 +46,7 @@ static void
|
||||
print_spl_list(Response &r, const PlaylistVector &list)
|
||||
{
|
||||
for (const auto &i : list) {
|
||||
r.Fmt(FMT_STRING("playlist: {}\n"), i.name);
|
||||
r.Fmt("playlist: {}\n", i.name);
|
||||
|
||||
if (!IsNegative(i.mtime))
|
||||
time_print(r, "Last-Modified", i.mtime);
|
||||
@@ -233,7 +233,7 @@ handle_update(Response &r, UpdateService &update,
|
||||
const char *uri_utf8, bool discard)
|
||||
{
|
||||
unsigned ret = update.Enqueue(uri_utf8, discard);
|
||||
r.Fmt(FMT_STRING("updating_db: {}\n"), ret);
|
||||
r.Fmt("updating_db: {}\n", ret);
|
||||
return CommandResult::OK;
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ handle_update(Response &r, Database &db,
|
||||
{
|
||||
unsigned id = db.Update(uri_utf8, discard);
|
||||
if (id > 0) {
|
||||
r.Fmt(FMT_STRING("updating_db: {}\n"), id);
|
||||
r.Fmt("updating_db: {}\n", id);
|
||||
return CommandResult::OK;
|
||||
} else {
|
||||
/* Database::Update() has returned 0 without setting
|
||||
@@ -308,7 +308,7 @@ handle_getvol(Client &client, Request, Response &r)
|
||||
|
||||
const auto volume = partition.mixer_memento.GetVolume(partition.outputs);
|
||||
if (volume >= 0)
|
||||
r.Fmt(FMT_STRING("volume: {}\n"), volume);
|
||||
r.Fmt("volume: {}\n", volume);
|
||||
|
||||
return CommandResult::OK;
|
||||
}
|
||||
@@ -372,7 +372,7 @@ handle_config(Client &client, [[maybe_unused]] Request args, Response &r)
|
||||
#ifdef ENABLE_DATABASE
|
||||
if (const Storage *storage = client.GetStorage()) {
|
||||
const auto path = storage->MapUTF8("");
|
||||
r.Fmt(FMT_STRING("music_directory: {}\n"), path);
|
||||
r.Fmt("music_directory: {}\n", path);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -394,7 +394,7 @@ handle_idle(Client &client, Request args, Response &r)
|
||||
unsigned event = idle_parse_name(i);
|
||||
if (event == 0) {
|
||||
r.FmtError(ACK_ERROR_ARG,
|
||||
FMT_STRING("Unrecognized idle event: {}"),
|
||||
"Unrecognized idle event: {}",
|
||||
i);
|
||||
return CommandResult::ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user