SongUpdate: move code to handle_lsinfo()

Don't create a temporary Song object in handle_lsinfo().  Instead,
print all tags while parsing the remote file.
This commit is contained in:
Max Kellermann
2014-01-08 23:35:37 +01:00
parent 10406c73b3
commit 8f9ba96c59
5 changed files with 30 additions and 20 deletions

View File

@@ -35,6 +35,12 @@ void tag_print_types(Client &client)
}
}
void
tag_print(Client &client, TagType type, const char *value)
{
client_printf(client, "%s: %s\n", tag_item_names[type], value);
}
void tag_print(Client &client, const Tag &tag)
{
if (tag.time >= 0)