mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 13:44:22 -04:00
Changed condition for readbility
- Refactored check if item is not audio book or book to be more readable
This commit is contained in:
parent
3cd57cb287
commit
bc017737e6
@ -220,7 +220,7 @@ namespace Emby.Server.Implementations.Library
|
|||||||
var hasRuntime = runtimeTicks > 0;
|
var hasRuntime = runtimeTicks > 0;
|
||||||
|
|
||||||
// If a position has been reported, and if we know the duration
|
// 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;
|
var pctIn = decimal.Divide(positionTicks, runtimeTicks) * 100;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user