aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Chapters
diff options
context:
space:
mode:
authorExpctING <wang812584596@gmail.com>2026-05-03 02:06:13 +0800
committerExpctING <wang812584596@gmail.com>2026-05-03 02:06:13 +0800
commit127d924c5bd004cb61bebc47a6474453408dcd5e (patch)
tree36f450c88ea2cff4f45b356f0241f066e1c37b31 /Emby.Server.Implementations/Chapters
parent1dd8541ed5832414c326f0c2662a899e1ec96259 (diff)
fix
Co-authored-by: Copilot <copilot@github.com>
Diffstat (limited to 'Emby.Server.Implementations/Chapters')
-rw-r--r--Emby.Server.Implementations/Chapters/ChapterManager.cs2
1 files changed, 1 insertions, 1 deletions
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;
}
/// <inheritdoc />