diff options
| author | Jake King <jakeking@hotmail.co.uk> | 2021-05-06 19:50:00 +0100 |
|---|---|---|
| committer | Jake King <jakeking@hotmail.co.uk> | 2021-05-06 19:50:00 +0100 |
| commit | 3cd57cb28703a078cc4c03e0af53a6b2e166a679 (patch) | |
| tree | 1aa9de60a013ecd6d0263df4eaa233ce72021490 | |
| parent | 95b1cf532b577aa744d5301af4eeb78d08da3ba8 (diff) | |
Fixes for Book Progress
- Ignore Books when checking for minium progress
| -rw-r--r-- | Emby.Server.Implementations/Library/UserDataManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/UserDataManager.cs b/Emby.Server.Implementations/Library/UserDataManager.cs index 827e3c64b..d7e4e2af7 100644 --- a/Emby.Server.Implementations/Library/UserDataManager.cs +++ b/Emby.Server.Implementations/Library/UserDataManager.cs @@ -220,7 +220,7 @@ namespace Emby.Server.Implementations.Library var hasRuntime = runtimeTicks > 0; // If a position has been reported, and if we know the duration - if (positionTicks > 0 && hasRuntime && !(item is AudioBook)) + if (positionTicks > 0 && hasRuntime && !(item is AudioBook) && !(item is Book)) { var pctIn = decimal.Divide(positionTicks, runtimeTicks) * 100; @@ -239,7 +239,7 @@ namespace Emby.Server.Implementations.Library { // Enforce MinResumeDuration var durationSeconds = TimeSpan.FromTicks(runtimeTicks).TotalSeconds; - if (durationSeconds < _config.Configuration.MinResumeDurationSeconds && !(item is Book)) + if (durationSeconds < _config.Configuration.MinResumeDurationSeconds) { positionTicks = 0; data.Played = playedToCompletion = true; |
