Polish for Release (#2357)

This commit is contained in:
Joe Milazzo 2023-10-28 10:12:39 -05:00 committed by GitHub
parent b0eb60e894
commit 05bcc3e88e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 39 additions and 29 deletions

View file

@ -678,6 +678,8 @@ public class SeriesService : ISeriesService
.OrderBy(c => c.CreatedUtc)
.ToList();
if (chapters.Count < 3) return _emptyExpectedChapter;
// Calculate the time differences between consecutive chapters
var timeDifferences = new List<TimeSpan>();
DateTime? previousChapterTime = null;