diff --git a/src/command/QueueCommands.cxx b/src/command/QueueCommands.cxx index 7844aacaf..c9a8417a4 100644 --- a/src/command/QueueCommands.cxx +++ b/src/command/QueueCommands.cxx @@ -115,7 +115,6 @@ handle_addid(Client &client, Request args, Response &r) auto &partition = client.GetPartition(); const SongLoader loader(client); unsigned added_id = partition.AppendURI(loader, uri); - partition.instance.LookupRemoteTag(uri); if (args.size == 2) { unsigned to = args.ParseUnsigned(1); @@ -129,6 +128,8 @@ handle_addid(Client &client, Request args, Response &r) } } + partition.instance.LookupRemoteTag(uri); + r.Fmt(FMT_STRING("Id: {}\n"), added_id); return CommandResult::OK; }