command: "lsinfo" and "readcomments" allowed for remote files

This commit is contained in:
Max Kellermann
2013-12-29 14:40:24 +01:00
parent b5f3bfce92
commit 809b0eb1f5
6 changed files with 68 additions and 0 deletions

View File

@@ -132,3 +132,17 @@ Song::UpdateFileInArchive()
tag = tag_builder.Commit();
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.Commit();
return true;
}