aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-04-16 12:04:21 +0200
committerGitHub <noreply@github.com>2024-04-16 12:04:21 +0200
commit014c9c3cdc696151756541132ad783dfc869ef67 (patch)
tree2ac29fd15d4e30a82cce2d2717cca3f2819c1c8d
parent133b568a35d5ce3c856eae65319796dc3e08361e (diff)
parentd402005d328d48c39f36e95be6577e7ed5d98cf1 (diff)
Merge pull request #11357 from crobibero/album-artist
fix: fallback to artist if album artist not provided
-rw-r--r--MediaBrowser.Providers/MediaInfo/AudioFileProber.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs b/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
index 67b84681d..bbc9af227 100644
--- a/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
+++ b/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
@@ -338,6 +338,12 @@ namespace MediaBrowser.Providers.MediaInfo
audio.Artists = performers;
}
+ if (albumArtists.Length == 0)
+ {
+ // Album artists not provided, fall back to performers (artists).
+ albumArtists = performers;
+ }
+
if (options.ReplaceAllMetadata && albumArtists.Length != 0)
{
audio.AlbumArtists = albumArtists;