mirror of
https://github.com/Readarr/Readarr
synced 2026-02-22 14:43:14 +01:00
Better tracking of CalibreId
This commit is contained in:
parent
dc843ec63e
commit
774180262b
1 changed files with 5 additions and 0 deletions
|
|
@ -206,6 +206,11 @@ public List<ImportResult> Import(List<ImportDecision<LocalBook>> decisions, bool
|
|||
if (previousFile != null)
|
||||
{
|
||||
_mediaFileService.Delete(previousFile, DeleteMediaFileReason.ManualOverride);
|
||||
|
||||
if (bookFile.CalibreId == 0 && previousFile.CalibreId != 0)
|
||||
{
|
||||
bookFile.CalibreId = previousFile.CalibreId;
|
||||
}
|
||||
}
|
||||
|
||||
_audioTagService.WriteTags(bookFile, false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue