From ea04e957c8c57bc7d1ebcd306decad02ea3c30c8 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 10 May 2013 12:57:51 -0400 Subject: [PATCH] fixed watched filter --- MediaBrowser.Api/UserLibrary/ItemsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs index f33c51c5c5..e83daab709 100644 --- a/MediaBrowser.Api/UserLibrary/ItemsService.cs +++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs @@ -367,7 +367,7 @@ namespace MediaBrowser.Api.UserLibrary { var userdata = repository.GetUserData(user.Id, item.GetUserDataKey()).Result; - return userdata != null && userdata.PlayCount > 0; + return userdata != null && userdata.Played; }); case ItemFilter.IsUnplayed: @@ -375,7 +375,7 @@ namespace MediaBrowser.Api.UserLibrary { var userdata = repository.GetUserData(user.Id, item.GetUserDataKey()).Result; - return userdata == null || userdata.PlayCount == 0; + return userdata == null || !userdata.Played; }); case ItemFilter.IsFolder: