aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheguymadmax <theguymadmax@proton.me>2025-09-11 17:24:23 -0400
committerGitHub <noreply@github.com>2025-09-11 15:24:23 -0600
commit986a509955332e366e6fa53fb4b5b4f96f666e27 (patch)
treee1f60b64b43439a0ee59132c9f0db4c1113da853
parentda19f02f7b48c68cfcdec2c491a943500c14cd00 (diff)
Add 1-second tolerance to resume playback completion check (#14774)
-rw-r--r--Emby.Server.Implementations/Library/UserDataManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/UserDataManager.cs b/Emby.Server.Implementations/Library/UserDataManager.cs
index be1d96bf0..b46206418 100644
--- a/Emby.Server.Implementations/Library/UserDataManager.cs
+++ b/Emby.Server.Implementations/Library/UserDataManager.cs
@@ -304,7 +304,7 @@ namespace Emby.Server.Implementations.Library
// ignore progress during the beginning
positionTicks = 0;
}
- else if (pctIn > _config.Configuration.MaxResumePct || positionTicks >= runtimeTicks)
+ else if (pctIn > _config.Configuration.MaxResumePct || positionTicks >= (runtimeTicks - TimeSpan.TicksPerSecond))
{
// mark as completed close to the end
positionTicks = 0;