The Free Software Media System - Server Backend & API
Add 1-second tolerance to resume playback completion check (#14774)
theguymadmax986a50995533
diff --git a/Emby.Server.Implementations/Library/UserDataManager.cs b/Emby.Server.Implementations/Library/UserDataManager.csindex be1d96bf0b..b462064187 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 beginningpositionTicks = 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 endpositionTicks = 0;