From a4a3bc512757212ec3badb3715d95cea32f19d44 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 20 Apr 2019 22:56:03 -0400 Subject: [PATCH] New: Don't overwrite Images/Overviews if new is blank --- src/NzbDrone.Core/Music/ArtistMetadata.cs | 4 ++-- src/NzbDrone.Core/Music/RefreshAlbumService.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Music/ArtistMetadata.cs b/src/NzbDrone.Core/Music/ArtistMetadata.cs index 20d792a78..87946a695 100644 --- a/src/NzbDrone.Core/Music/ArtistMetadata.cs +++ b/src/NzbDrone.Core/Music/ArtistMetadata.cs @@ -38,11 +38,11 @@ namespace NzbDrone.Core.Music { ForeignArtistId = otherArtist.ForeignArtistId; Name = otherArtist.Name; - Overview = otherArtist.Overview; + Overview = otherArtist.Overview.IsNullOrWhiteSpace() ? Overview : otherArtist.Overview; Disambiguation = otherArtist.Disambiguation; Type = otherArtist.Type; Status = otherArtist.Status; - Images = otherArtist.Images; + Images = otherArtist.Images.Any() ? otherArtist.Images : Images; Links = otherArtist.Links; Genres = otherArtist.Genres; Ratings = otherArtist.Ratings; diff --git a/src/NzbDrone.Core/Music/RefreshAlbumService.cs b/src/NzbDrone.Core/Music/RefreshAlbumService.cs index fa57f80de..3e0567498 100644 --- a/src/NzbDrone.Core/Music/RefreshAlbumService.cs +++ b/src/NzbDrone.Core/Music/RefreshAlbumService.cs @@ -141,12 +141,12 @@ namespace NzbDrone.Core.Music album.LastInfoSync = DateTime.UtcNow; album.CleanTitle = albumInfo.CleanTitle; album.Title = albumInfo.Title ?? "Unknown"; - album.Overview = albumInfo.Overview; + album.Overview = albumInfo.Overview.IsNullOrWhiteSpace() ? album.Overview : albumInfo.Overview; album.Disambiguation = albumInfo.Disambiguation; album.AlbumType = albumInfo.AlbumType; album.SecondaryTypes = albumInfo.SecondaryTypes; album.Genres = albumInfo.Genres; - album.Images = albumInfo.Images; + album.Images = albumInfo.Images.Any() ? albumInfo.Images : album.Images; album.Links = albumInfo.Links; album.ReleaseDate = albumInfo.ReleaseDate; album.Ratings = albumInfo.Ratings;