aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/UserViewBuilder.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2025-09-14 11:18:21 -0600
committerGitHub <noreply@github.com>2025-09-14 11:18:21 -0600
commit4d36bd635d3dd0ff5652c1807dce7a1a1dff8873 (patch)
treedc43dd1c295df449de4b0728e5512555c67d3fbb /MediaBrowser.Controller/Entities/UserViewBuilder.cs
parent7c6cedd90ac26d6b18fd518f25421b2b71c74993 (diff)
Revert IsPlayed optimization, pass UserItemData to IsPlayed when available (#14786)
Diffstat (limited to 'MediaBrowser.Controller/Entities/UserViewBuilder.cs')
-rw-r--r--MediaBrowser.Controller/Entities/UserViewBuilder.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/UserViewBuilder.cs b/MediaBrowser.Controller/Entities/UserViewBuilder.cs
index 0cd3399d4..62eb43aa5 100644
--- a/MediaBrowser.Controller/Entities/UserViewBuilder.cs
+++ b/MediaBrowser.Controller/Entities/UserViewBuilder.cs
@@ -542,7 +542,7 @@ namespace MediaBrowser.Controller.Entities
if (query.IsPlayed.HasValue)
{
userData ??= userDataManager.GetUserData(user, item);
- if (userData.Played != query.IsPlayed.Value)
+ if (item.IsPlayed(user, userData) != query.IsPlayed.Value)
{
return false;
}