diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-07-24 19:38:38 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-07-24 19:38:38 +0200 |
| commit | 4d1f90b2f71a1cb5023e07a30aca7e8492482006 (patch) | |
| tree | 63ae286639717cbd4f3e02ae90e70f5e3837e304 | |
| parent | b7b270042512cfcdf0c3f435be0359ed361ba56c (diff) | |
Don't pull MusicBrainz Annotations into overview
| -rw-r--r-- | MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzAlbumProvider.cs | 15 | ||||
| -rw-r--r-- | MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzArtistProvider.cs | 7 |
2 files changed, 3 insertions, 19 deletions
diff --git a/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzAlbumProvider.cs b/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzAlbumProvider.cs index 92e215fc70..397c916a4f 100644 --- a/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzAlbumProvider.cs +++ b/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzAlbumProvider.cs @@ -213,7 +213,7 @@ public class MusicBrainzAlbumProvider : IRemoteMetadataProvider<MusicAlbum, Albu { release = await query.LookupReleaseAsync( new Guid(releaseId), - Include.Artists | Include.ReleaseGroups | Include.Labels | Include.Genres | Include.Tags | Include.Annotation, + Include.Artists | Include.ReleaseGroups | Include.Labels | Include.Genres | Include.Tags, cancellationToken).ConfigureAwait(false); if (string.IsNullOrWhiteSpace(releaseGroupId) && release?.ReleaseGroup?.Id is not null) @@ -227,7 +227,7 @@ public class MusicBrainzAlbumProvider : IRemoteMetadataProvider<MusicAlbum, Albu { releaseGroup = await query.LookupReleaseGroupAsync( new Guid(releaseGroupId), - Include.Artists | Include.Genres | Include.Tags | Include.Annotation, + Include.Artists | Include.Genres | Include.Tags, null, cancellationToken).ConfigureAwait(false); } @@ -252,17 +252,6 @@ public class MusicBrainzAlbumProvider : IRemoteMetadataProvider<MusicAlbum, Albu private static void Populate(MusicAlbum item, IRelease? release, IReleaseGroup? releaseGroup) { // Prefer the release group (album-level) data, falling back to the specific release. - var overview = releaseGroup?.Annotation; - if (string.IsNullOrWhiteSpace(overview)) - { - overview = release?.Annotation; - } - - if (!string.IsNullOrWhiteSpace(overview)) - { - item.Overview = overview; - } - // The release group's first release date is the original album date. var date = releaseGroup?.FirstReleaseDate ?? release?.Date; if (date is not null) diff --git a/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzArtistProvider.cs b/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzArtistProvider.cs index 732a1ec242..a9e950fb64 100644 --- a/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzArtistProvider.cs +++ b/MediaBrowser.Providers/Plugins/MusicBrainz/MusicBrainzArtistProvider.cs @@ -114,7 +114,7 @@ public class MusicBrainzArtistProvider : IRemoteMetadataProvider<MusicArtist, Ar } var query = Plugin.Instance!.MusicBrainzQuery; - var artist = await query.LookupArtistAsync(new Guid(musicBrainzId), Include.Annotation | Include.Genres | Include.Tags, null, null, cancellationToken).ConfigureAwait(false); + var artist = await query.LookupArtistAsync(new Guid(musicBrainzId), Include.Genres | Include.Tags, null, null, cancellationToken).ConfigureAwait(false); if (artist is null) { @@ -129,11 +129,6 @@ public class MusicBrainzArtistProvider : IRemoteMetadataProvider<MusicArtist, Ar result.Item.Name = artist.Name; } - if (!string.IsNullOrWhiteSpace(artist.Annotation)) - { - result.Item.Overview = artist.Annotation; - } - if (artist.LifeSpan?.Begin is not null) { result.Item.PremiereDate = artist.LifeSpan.Begin.NearestDate; |
