diff options
author | Max Kellermann <max@duempel.org> | 2013-12-29 14:40:24 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-29 18:25:32 +0100 |
commit | 809b0eb1f52289894554def6bf078a87c9d64cf3 (patch) | |
tree | c256b202e1c7bfeacf64f812b4d252492d0b752e /src/SongUpdate.cxx | |
parent | b5f3bfce92b42ad3b6c7f5f37ea1b8a23616f87f (diff) | |
download | mpd-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.cxx | 14 |
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; +} |