From 041cd22c8f03cca103c53dfb7a22c87bedfd18ec Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Thu, 30 Jun 2022 12:41:43 -0500 Subject: [PATCH] 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 --- .../Metadata/WordCountAnalyzerService.cs | 2 +- .../manga-reader/manga-reader.component.html | 6 ++-- .../manga-reader/manga-reader.component.ts | 34 ++----------------- 3 files changed, 5 insertions(+), 37 deletions(-) diff --git a/API/Services/Tasks/Metadata/WordCountAnalyzerService.cs b/API/Services/Tasks/Metadata/WordCountAnalyzerService.cs index b2d3470a7..8c71b92d3 100644 --- a/API/Services/Tasks/Metadata/WordCountAnalyzerService.cs +++ b/API/Services/Tasks/Metadata/WordCountAnalyzerService.cs @@ -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); } diff --git a/UI/Web/src/app/manga-reader/manga-reader.component.html b/UI/Web/src/app/manga-reader/manga-reader.component.html index 4aebd4380..a592d684c 100644 --- a/UI/Web/src/app/manga-reader/manga-reader.component.html +++ b/UI/Web/src/app/manga-reader/manga-reader.component.html @@ -13,9 +13,6 @@ - {{readerService.imageUrlToPageNum(this.canvasImage.src)}} - {{readerService.imageUrlToPageNum(this.canvasImage2.src)}} -