From 127d924c5bd004cb61bebc47a6474453408dcd5e Mon Sep 17 00:00:00 2001 From: ExpctING Date: Sun, 3 May 2026 02:06:13 +0800 Subject: fix Co-authored-by: Copilot --- Emby.Server.Implementations/Chapters/ChapterManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Emby.Server.Implementations/Chapters/ChapterManager.cs') diff --git a/Emby.Server.Implementations/Chapters/ChapterManager.cs b/Emby.Server.Implementations/Chapters/ChapterManager.cs index f24c975c14..a2d7d7d7fb 100644 --- a/Emby.Server.Implementations/Chapters/ChapterManager.cs +++ b/Emby.Server.Implementations/Chapters/ChapterManager.cs @@ -108,7 +108,7 @@ public class ChapterManager : IChapterManager sum += chapters[i].StartPositionTicks - chapters[i - 1].StartPositionTicks; } - return sum / (chapters.Count - 1); + return sum / chapters.Count; } /// -- cgit v1.2.3