aboutsummaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-rw-r--r--src/db/Helpers.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/db/Helpers.cxx b/src/db/Helpers.cxx
index 719fa8741..43b0e8159 100644
--- a/src/db/Helpers.cxx
+++ b/src/db/Helpers.cxx
@@ -58,7 +58,10 @@ CollectTags(StringSet &set, TagType tag_type, const LightSong &song)
assert(song.tag != nullptr);
const Tag &tag = *song.tag;
- if (!CheckUniqueTag(set, tag, tag_type))
+ if (!CheckUniqueTag(set, tag, tag_type) &&
+ (tag_type != TAG_ALBUM_ARTIST ||
+ /* fall back to "Artist" if no "AlbumArtist" was found */
+ !CheckUniqueTag(set, tag, TAG_ARTIST)))
set.insert("");
return true;