mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 09:29:59 +00:00
Fixed: Don't delete files when books are deleted from the metadata
This commit is contained in:
@@ -222,7 +222,7 @@ namespace NzbDrone.Core.Books
|
||||
|
||||
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 @@ namespace NzbDrone.Core.Books
|
||||
|
||||
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 @@ namespace NzbDrone.Core.Books
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user