소스 검색

Add 1-second tolerance to resume playback completion check (#14774)

theguymadmax 3 달 전
부모
커밋
986a509955
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Emby.Server.Implementations/Library/UserDataManager.cs

+ 1 - 1
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;