mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-26 15:52:42 +00:00
New: Don't overwrite Images/Overviews if new is blank
This commit is contained in:
parent
e998f9c029
commit
a4a3bc5127
2 changed files with 4 additions and 4 deletions
|
@ -38,11 +38,11 @@ public void ApplyChanges(ArtistMetadata otherArtist)
|
|||
{
|
||||
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 @@ public void RefreshAlbumInfo(Album album, bool forceUpdateFileTags)
|
|||
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…
Reference in a new issue