[taglib] Handle tags ARTIST and ARTISTS separately

* Read ARTISTS as extra track data instead of replacing/overwriting ARTIST

Resolves #783
This commit is contained in:
Luke Taylor 2025-12-16 00:00:08 +00:00
parent 8f0bb0f78b
commit 883d37fde0
No known key found for this signature in database
GPG Key ID: 08F32B3B8CA0CF51
2 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ namespace Fooyin {
namespace Tag {
constexpr auto Title = "TITLE";
constexpr auto Artist = "ARTIST";
constexpr auto ArtistAlt = "ARTISTS";
constexpr auto Album = "ALBUM";
constexpr auto AlbumArtist = "ALBUMARTIST";
constexpr auto Genre = "GENRE";

View File

@ -628,7 +628,7 @@ void readGeneralProperties(const TagLib::PropertyMap& props, Fooyin::Track& trac
if(field == Title) {
track.setTitle(convertString(value.toString()));
}
else if(field == Artist || field == ArtistAlt) {
else if(field == Artist) {
track.setArtists(convertStringList(value));
}
else if(field == Album) {