Fixed: Metadata files not being created after rescan

(cherry picked from commit e2ff089232765b876719b324e0543441e0bd1521)
This commit is contained in:
Mark McDowall 2020-03-10 23:57:41 -07:00 committed by Adam Shick
parent ac2d439ae4
commit cefa4ddbbc
2 changed files with 5 additions and 1 deletions

View file

@ -18,6 +18,7 @@ public MediaCoversUpdatedEvent(Author author, bool updated)
public MediaCoversUpdatedEvent(Book book, bool updated)
{
Book = book;
Updated = updated;
}
}
}

View file

@ -286,7 +286,10 @@ public void Handle(AuthorRenamedEvent message)
[NonAction]
public void Handle(MediaCoversUpdatedEvent message)
{
BroadcastResourceChange(ModelAction.Updated, GetAuthorResource(message.Author));
if (message.Updated)
{
BroadcastResourceChange(ModelAction.Updated, GetAuthorResource(message.Author));
}
}
}
}