mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Fixed: Correct diff previews when new tag image is null
Related to #2861
This commit is contained in:
parent
215df9c910
commit
37fbc65eb6
1 changed files with 16 additions and 2 deletions
|
@ -208,10 +208,17 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var newTags = GetTrackMetadata(trackfile);
|
|
||||||
var path = trackfile.Path;
|
var path = trackfile.Path;
|
||||||
|
var oldTags = ReadAudioTag(path);
|
||||||
|
var newTags = GetTrackMetadata(trackfile);
|
||||||
|
|
||||||
var diff = ReadAudioTag(path).Diff(newTags);
|
// We don't overwrite image when new image is null
|
||||||
|
if (newTags.ImageFile == null && !_configService.ScrubAudioTags)
|
||||||
|
{
|
||||||
|
newTags.ImageSize = oldTags.ImageSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
var diff = oldTags.Diff(newTags);
|
||||||
|
|
||||||
_rootFolderWatchingService.ReportFileSystemChangeBeginning(path);
|
_rootFolderWatchingService.ReportFileSystemChangeBeginning(path);
|
||||||
|
|
||||||
|
@ -350,6 +357,13 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
|
|
||||||
var oldTags = ReadAudioTag(f.Path);
|
var oldTags = ReadAudioTag(f.Path);
|
||||||
var newTags = GetTrackMetadata(f);
|
var newTags = GetTrackMetadata(f);
|
||||||
|
|
||||||
|
// We don't overwrite image when new image is null
|
||||||
|
if (newTags.ImageFile == null && !_configService.ScrubAudioTags)
|
||||||
|
{
|
||||||
|
newTags.ImageSize = oldTags.ImageSize;
|
||||||
|
}
|
||||||
|
|
||||||
var diff = oldTags.Diff(newTags);
|
var diff = oldTags.Diff(newTags);
|
||||||
|
|
||||||
if (diff.Any())
|
if (diff.Any())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue