aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-29 14:40:24 +0100
committerMax Kellermann <max@duempel.org>2013-12-29 18:25:32 +0100
commit809b0eb1f52289894554def6bf078a87c9d64cf3 (patch)
treec256b202e1c7bfeacf64f812b4d252492d0b752e /src/SongUpdate.cxx
parentb5f3bfce92b42ad3b6c7f5f37ea1b8a23616f87f (diff)
downloadmpd-809b0eb1f52289894554def6bf078a87c9d64cf3.tar.gz
mpd-809b0eb1f52289894554def6bf078a87c9d64cf3.tar.xz
mpd-809b0eb1f52289894554def6bf078a87c9d64cf3.zip
command: "lsinfo" and "readcomments" allowed for remote files
Diffstat (limited to 'src/SongUpdate.cxx')
-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;
+}