Fixed: Add missing author when a book's author changes in metadata

Fixes READARR-VH
This commit is contained in:
ta264
2022-08-04 21:55:21 +01:00
parent c0c0847963
commit b3f99d8c20
3 changed files with 28 additions and 1 deletions
@@ -29,6 +29,7 @@ namespace Readarr.Api.V1.Author
IHandle<BookImportedEvent>,
IHandle<BookEditedEvent>,
IHandle<BookFileDeletedEvent>,
IHandle<AuthorAddedEvent>,
IHandle<AuthorUpdatedEvent>,
IHandle<AuthorEditedEvent>,
IHandle<AuthorDeletedEvent>,
@@ -255,6 +256,12 @@ namespace Readarr.Api.V1.Author
BroadcastResourceChange(ModelAction.Updated, GetAuthorResource(message.BookFile.Author.Value));
}
[NonAction]
public void Handle(AuthorAddedEvent message)
{
BroadcastResourceChange(ModelAction.Updated, GetAuthorResource(message.Author));
}
[NonAction]
public void Handle(AuthorUpdatedEvent message)
{