Better tracking of CalibreId

pull/1032/head
ta264 4 years ago
parent dc843ec63e
commit 774180262b

@ -206,6 +206,11 @@ namespace NzbDrone.Core.MediaFiles.BookImport
if (previousFile != null) if (previousFile != null)
{ {
_mediaFileService.Delete(previousFile, DeleteMediaFileReason.ManualOverride); _mediaFileService.Delete(previousFile, DeleteMediaFileReason.ManualOverride);
if (bookFile.CalibreId == 0 && previousFile.CalibreId != 0)
{
bookFile.CalibreId = previousFile.CalibreId;
}
} }
_audioTagService.WriteTags(bookFile, false); _audioTagService.WriteTags(bookFile, false);

Loading…
Cancel
Save