mirror of
https://github.com/Readarr/Readarr
synced 2026-01-22 15:31:29 +01:00
Fixed: Don't delete files when books are deleted from the metadata
This commit is contained in:
parent
f48eac7e36
commit
49b024d50c
3 changed files with 3 additions and 3 deletions
|
|
@ -222,7 +222,7 @@ protected override void SaveEntity(Author local)
|
|||
|
||||
protected override void DeleteEntity(Author local, bool deleteFiles)
|
||||
{
|
||||
_authorService.DeleteAuthor(local.Id, true);
|
||||
_authorService.DeleteAuthor(local.Id, deleteFiles);
|
||||
}
|
||||
|
||||
protected override List<Book> GetRemoteChildren(Author local, Author remote)
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ protected override void SaveEntity(Book local)
|
|||
|
||||
protected override void DeleteEntity(Book local, bool deleteFiles)
|
||||
{
|
||||
_bookService.DeleteBook(local.Id, true);
|
||||
_bookService.DeleteBook(local.Id, deleteFiles);
|
||||
}
|
||||
|
||||
protected override List<Edition> GetRemoteChildren(Book local, Book remote)
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ public bool RefreshEntityInfo(TEntity local, List<TEntity> remoteItems, Author r
|
|||
if (ShouldDelete(local))
|
||||
{
|
||||
_logger.Warn($"{typeof(TEntity).Name} {local} not found in metadata and is being deleted");
|
||||
DeleteEntity(local, true);
|
||||
DeleteEntity(local, false);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue