New: Option to control which new author books get monitored

This commit is contained in:
ta264
2021-12-01 21:23:23 +00:00
parent 1d694af98e
commit c51ae664aa
42 changed files with 774 additions and 265 deletions
@@ -93,6 +93,11 @@ namespace NzbDrone.Core.Books
protected abstract void PrepareNewChild(TChild child, TEntity entity);
protected abstract void PrepareExistingChild(TChild local, TChild remote, TEntity entity);
protected virtual void ProcessChildren(TEntity entity, SortedChildren children)
{
}
protected abstract void AddChildren(List<TChild> children);
protected abstract bool RefreshChildren(SortedChildren localChildren, List<TChild> remoteChildren, Author remoteData, bool forceChildRefresh, bool forceUpdateFileTags, DateTime? lastUpdate);
@@ -277,6 +282,8 @@ namespace NzbDrone.Core.Books
sortedChildren.Deleted.Count);
}
ProcessChildren(entity, sortedChildren);
// Add in the new children (we have checked that foreign IDs don't clash)
AddChildren(sortedChildren.Added);