mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 22:23:17 -05:00
Set an empty album_artist for songs part of a compilation if not set
Songs in a compilation must all have the same album_artist and album (due to songalbumid); if a song in a compilation doesn't have an album_artist, set it to an empty string instead of defaulting to the value of artist. This is less likely to break the compilation.
This commit is contained in:
parent
de8884c8df
commit
ebd673601d
@ -191,7 +191,12 @@ fixup_tags(struct media_file_info *mfi)
|
||||
|
||||
/* If we don't have an album_artist, set it to artist */
|
||||
if (!mfi->album_artist)
|
||||
mfi->album_artist = strdup(mfi->artist);
|
||||
{
|
||||
if (mfi->compilation)
|
||||
mfi->album_artist = strdup("");
|
||||
else
|
||||
mfi->album_artist = strdup(mfi->artist);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user