The Free Software Media System - Server Backend & API
Changed condition for readbility
Jake Kingbc017737e678
diff --git a/Emby.Server.Implementations/Library/UserDataManager.cs b/Emby.Server.Implementations/Library/UserDataManager.csindex d7e4e2af7f..47f881f73b 100644--- a/Emby.Server.Implementations/Library/UserDataManager.cs+++ b/Emby.Server.Implementations/Library/UserDataManager.cs@@ -220,7 +220,7 @@ namespace Emby.Server.Implementations.Libraryvar hasRuntime = runtimeTicks > 0;// If a position has been reported, and if we know the duration- if (positionTicks > 0 && hasRuntime && !(item is AudioBook) && !(item is Book))+ if (positionTicks > 0 && hasRuntime && item is not AudioBook && item is not Book){var pctIn = decimal.Divide(positionTicks, runtimeTicks) * 100;