Last Shakeout (#1342)

* Fixed a bug where series estimate reading time could be calculated before we restore esisting time.

* Cleaned up debug code for the reader

* Fixed an issue where pagination areas on wide images wasn't proper height

* Fixed a pagination height calc

* Small change
This commit is contained in:
Joseph Milazzo 2022-06-30 12:41:43 -05:00 committed by GitHub
parent 2786c21d12
commit 041cd22c8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 37 deletions

View file

@ -219,11 +219,11 @@ public class WordCountAnalyzerService : IWordCountAnalyzerService
}
if (series.WordCount == 0 && series.WordCount != 0) series.WordCount = existingWordCount; // Restore original word count if the file hasn't changed
var seriesEstimate = _readerService.GetTimeEstimate(series.WordCount, series.Pages, isEpub);
series.MinHoursToRead = seriesEstimate.MinHours;
series.MaxHoursToRead = seriesEstimate.MaxHours;
series.AvgHoursToRead = seriesEstimate.AvgHours;
if (series.WordCount == 0) series.WordCount = existingWordCount; // Restore original word count if the file hasn't changed
_unitOfWork.SeriesRepository.Update(series);
}