New: Don't overwrite Images/Overviews if new is blank

This commit is contained in:
Qstick 2019-04-20 22:56:03 -04:00
parent e998f9c029
commit a4a3bc5127
2 changed files with 4 additions and 4 deletions

View File

@ -38,11 +38,11 @@ namespace NzbDrone.Core.Music
{ {
ForeignArtistId = otherArtist.ForeignArtistId; ForeignArtistId = otherArtist.ForeignArtistId;
Name = otherArtist.Name; Name = otherArtist.Name;
Overview = otherArtist.Overview; Overview = otherArtist.Overview.IsNullOrWhiteSpace() ? Overview : otherArtist.Overview;
Disambiguation = otherArtist.Disambiguation; Disambiguation = otherArtist.Disambiguation;
Type = otherArtist.Type; Type = otherArtist.Type;
Status = otherArtist.Status; Status = otherArtist.Status;
Images = otherArtist.Images; Images = otherArtist.Images.Any() ? otherArtist.Images : Images;
Links = otherArtist.Links; Links = otherArtist.Links;
Genres = otherArtist.Genres; Genres = otherArtist.Genres;
Ratings = otherArtist.Ratings; Ratings = otherArtist.Ratings;

View File

@ -141,12 +141,12 @@ namespace NzbDrone.Core.Music
album.LastInfoSync = DateTime.UtcNow; album.LastInfoSync = DateTime.UtcNow;
album.CleanTitle = albumInfo.CleanTitle; album.CleanTitle = albumInfo.CleanTitle;
album.Title = albumInfo.Title ?? "Unknown"; album.Title = albumInfo.Title ?? "Unknown";
album.Overview = albumInfo.Overview; album.Overview = albumInfo.Overview.IsNullOrWhiteSpace() ? album.Overview : albumInfo.Overview;
album.Disambiguation = albumInfo.Disambiguation; album.Disambiguation = albumInfo.Disambiguation;
album.AlbumType = albumInfo.AlbumType; album.AlbumType = albumInfo.AlbumType;
album.SecondaryTypes = albumInfo.SecondaryTypes; album.SecondaryTypes = albumInfo.SecondaryTypes;
album.Genres = albumInfo.Genres; album.Genres = albumInfo.Genres;
album.Images = albumInfo.Images; album.Images = albumInfo.Images.Any() ? albumInfo.Images : album.Images;
album.Links = albumInfo.Links; album.Links = albumInfo.Links;
album.ReleaseDate = albumInfo.ReleaseDate; album.ReleaseDate = albumInfo.ReleaseDate;
album.Ratings = albumInfo.Ratings; album.Ratings = albumInfo.Ratings;