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

@@ -132,17 +132,3 @@ Song::UpdateFileInArchive()
tag = tag_builder.CommitNew();
return true;
}
bool
Song::UpdateStream()
{
assert(!IsFile());
TagBuilder tag_builder;
if (!tag_stream_scan(uri, full_tag_handler, &tag_builder))
return false;
delete tag;
tag = tag_builder.CommitNew();
return true;
}