From b9121be6e8850e525e42d8673e03fa8ccd5c42fa Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 2 Sep 2023 20:10:19 -0700 Subject: [PATCH] ASF/WMA: Implement Album Artist tags (oops) Signed-off-by: Christopher Snowhill --- Frameworks/TagLib/taglib/taglib/asf/asftag.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Frameworks/TagLib/taglib/taglib/asf/asftag.cpp b/Frameworks/TagLib/taglib/taglib/asf/asftag.cpp index 6758915e2..3dd7c38d3 100644 --- a/Frameworks/TagLib/taglib/taglib/asf/asftag.cpp +++ b/Frameworks/TagLib/taglib/taglib/asf/asftag.cpp @@ -57,6 +57,8 @@ String ASF::Tag::title() const String ASF::Tag::albumartist() const { + if(d->attributeListMap.contains("WM/AlbumArtist")) + return d->attributeListMap["WM/AlbumArtist"][0].toString(); return String(); } @@ -171,8 +173,9 @@ void ASF::Tag::setTitle(const String &value) d->title = value; } -void ASF::Tag::setAlbumArtist(const String &) +void ASF::Tag::setAlbumArtist(const String &value) { + setAttribute("WM/AlbumArtist", value); } void ASF::Tag::setArtist(const String &value)