aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-31 12:24:16 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-31 12:24:16 -0400
commita025f4eefaf43c27f33521239d99c47d292728f5 (patch)
treeff6cbf4d0eba8b58c3acdadbbc5fe0b895ff4a6a /MediaBrowser.Api/UserLibrary/UserLibraryService.cs
parenteaf70589ae9469616596ee951e50e83941495b9e (diff)
sync updates
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/UserLibraryService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/UserLibraryService.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs b/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
index cdfd00ce9..38eae2577 100644
--- a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
+++ b/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
@@ -304,6 +304,14 @@ namespace MediaBrowser.Api.UserLibrary
{
var user = _userManager.GetUserById(request.UserId);
+ if (!request.IsPlayed.HasValue)
+ {
+ if (user.Configuration.HidePlayedInLatest)
+ {
+ request.IsPlayed = false;
+ }
+ }
+
var list = _userViewManager.GetLatestItems(new LatestItemsQuery
{
GroupItems = request.GroupItems,