aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2024-04-14 14:29:55 -0600
committerCody Robibero <cody@robibe.ro>2024-04-14 14:29:55 -0600
commitd402005d328d48c39f36e95be6577e7ed5d98cf1 (patch)
tree357b7cd774ef0bc1f70616185c71cb94fdf81c58
parent6fb6b5f1766a1f37a61b9faaa40209bab995bf30 (diff)
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;