From 809b0eb1f52289894554def6bf078a87c9d64cf3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 29 Dec 2013 14:40:24 +0100 Subject: command: "lsinfo" and "readcomments" allowed for remote files --- src/SongUpdate.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/SongUpdate.cxx') diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index fd4aa6751..aef484a6f 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -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; +} -- cgit v1.2.3