aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/SongUpdate.cxx14
1 files changed, 14 insertions, 0 deletions
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;
+}