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

pull/6/head
Qstick 6 years ago
parent e998f9c029
commit a4a3bc5127

@ -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;

@ -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;

Loading…
Cancel
Save