diff options
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; +} |