mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
fixed watched filter
This commit is contained in:
parent
f04e458693
commit
ea04e957c8
1 changed files with 2 additions and 2 deletions
|
@ -367,7 +367,7 @@ namespace MediaBrowser.Api.UserLibrary
|
||||||
{
|
{
|
||||||
var userdata = repository.GetUserData(user.Id, item.GetUserDataKey()).Result;
|
var userdata = repository.GetUserData(user.Id, item.GetUserDataKey()).Result;
|
||||||
|
|
||||||
return userdata != null && userdata.PlayCount > 0;
|
return userdata != null && userdata.Played;
|
||||||
});
|
});
|
||||||
|
|
||||||
case ItemFilter.IsUnplayed:
|
case ItemFilter.IsUnplayed:
|
||||||
|
@ -375,7 +375,7 @@ namespace MediaBrowser.Api.UserLibrary
|
||||||
{
|
{
|
||||||
var userdata = repository.GetUserData(user.Id, item.GetUserDataKey()).Result;
|
var userdata = repository.GetUserData(user.Id, item.GetUserDataKey()).Result;
|
||||||
|
|
||||||
return userdata == null || userdata.PlayCount == 0;
|
return userdata == null || !userdata.Played;
|
||||||
});
|
});
|
||||||
|
|
||||||
case ItemFilter.IsFolder:
|
case ItemFilter.IsFolder:
|
||||||
|
|
Loading…
Reference in a new issue