Fix biography not being updated from searchResults.
MODIFY
XRayBuilder.Core/src/Extras/AuthorProfile/AuthorProfileGenerator.cs
XRayBuilder.Core/src/Extras/AuthorProfile/AuthorProfileGenerator.cs
@@ -150,13 +150,13 @@ string TrimBio(string bio)
request.Settings.AmazonTld = "com";
var tempSearchResults = await _amazonClient.SearchAuthor(request.Book.Author, request.Settings.AmazonTld, cancellationToken);
if (tempSearchResults?.Biography != null)
- {
searchResults.Biography = tempSearchResults.Biography;
- biography = searchResults.Biography;
- }
}
}
+ if (searchResults.Biography != null)
+ biography = searchResults.Biography;
+
if (File.Exists(bioFile) && request.Settings.SaveBio)
{
biography = ReadBio(bioFile);

Fix biography not being updated from searchResults.