Update current book reading hours and minutes when using ReadingTimeService.
MODIFY
XRayBuilder.Core/src/Extras/EndActions/EndActionsDataGenerator.cs
XRayBuilder.Core/src/Extras/EndActions/EndActionsDataGenerator.cs
@@ -389,7 +389,12 @@ async Task<BookInfo> FromApOrSearch(BookInfo book, CancellationToken ct)
{
var readingTimeFromPageCount = "";
if (curBook.PageCount != 0)
+ {
+ var readingTime = _readingTimeService.GetReadingTime(curBook.PageCount);
+ curBook.ReadingHours = readingTime.Hours;
+ curBook.ReadingMinutes = readingTime.Minutes;
readingTimeFromPageCount = _readingTimeService.GetFormattedReadingTime(curBook.PageCount);
+ }
if (string.IsNullOrEmpty(readingTimeFromPageCount))
{

Update current book reading hours and minutes when using ReadingTimeService.