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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user