TagStream: add TagBuilder overload with ScanGenericTags() fallback

This commit adds support for APE/ID3 tags from NFS/SMB files.

See http://bugs.musicpd.org/view.php?id=4270
This commit is contained in:
Max Kellermann
2016-02-26 13:23:42 +01:00
parent a9130cb99c
commit 3d9652ae35
4 changed files with 46 additions and 4 deletions

View File

@@ -92,8 +92,7 @@ Song::UpdateFile(Storage &storage)
if (path_fs.IsNull()) {
const auto absolute_uri =
storage.MapUTF8(relative_uri.c_str());
if (!tag_stream_scan(absolute_uri.c_str(),
full_tag_handler, &tag_builder))
if (!tag_stream_scan(absolute_uri.c_str(), tag_builder))
return false;
} else {
if (!tag_file_scan(path_fs, tag_builder))
@@ -165,8 +164,7 @@ DetachedSong::Update()
return LoadFile(path_fs);
} else if (IsRemote()) {
TagBuilder tag_builder;
if (!tag_stream_scan(uri.c_str(), full_tag_handler,
&tag_builder))
if (!tag_stream_scan(uri.c_str(), tag_builder))
return false;
mtime = 0;