summaryrefslogtreecommitdiff
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-26 13:18:32 +0100
committerMax Kellermann <max@duempel.org>2016-02-26 13:48:38 +0100
commita9130cb99c7c51f81b641c6a24834063507f0164 (patch)
tree54b3188cdf43c15767d8548946a2f625aecf3dee /src/SongUpdate.cxx
parentb1d60b5c85608df13c8032d0582125ad0ab4dd28 (diff)
TagFile: add TagBuilder overload with ScanGenericTags() fallback
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r--src/SongUpdate.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx
index 5b1141a40..46582bf4b 100644
--- a/src/SongUpdate.cxx
+++ b/src/SongUpdate.cxx
@@ -96,12 +96,8 @@ Song::UpdateFile(Storage &storage)
full_tag_handler, &tag_builder))
return false;
} else {
- if (!tag_file_scan(path_fs, full_tag_handler, &tag_builder))
+ if (!tag_file_scan(path_fs, tag_builder))
return false;
-
- if (tag_builder.IsEmpty())
- ScanGenericTags(path_fs, full_tag_handler,
- &tag_builder);
}
mtime = info.mtime;
@@ -149,12 +145,9 @@ DetachedSong::LoadFile(Path path)
return false;
TagBuilder tag_builder;
- if (!tag_file_scan(path, full_tag_handler, &tag_builder))
+ if (!tag_file_scan(path, tag_builder))
return false;
- if (tag_builder.IsEmpty())
- ScanGenericTags(path, full_tag_handler, &tag_builder);
-
mtime = fi.GetModificationTime();
tag_builder.Commit(tag);
return true;