aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/UserViewsService.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-06-17 02:09:32 +0900
committerGitHub <noreply@github.com>2020-06-17 02:09:32 +0900
commitf5d82441a49c54022904603f2a7b196e48888f14 (patch)
treed34921899cf5ab1b8715a338c60f10b1cd309448 /MediaBrowser.Api/UserLibrary/UserViewsService.cs
parent3f58bd7c586e2816c1bb3afe7a165bb9d3f131ea (diff)
parent215ab39e00be3a79875351a76f0d836a9281ce6b (diff)
Merge branch 'master' into custom-repos
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/UserViewsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/UserViewsService.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Api/UserLibrary/UserViewsService.cs b/MediaBrowser.Api/UserLibrary/UserViewsService.cs
index 0fffb0622..6f1620ddd 100644
--- a/MediaBrowser.Api/UserLibrary/UserViewsService.cs
+++ b/MediaBrowser.Api/UserLibrary/UserViewsService.cs
@@ -27,6 +27,7 @@ namespace MediaBrowser.Api.UserLibrary
[ApiMember(Name = "IncludeExternalContent", Description = "Whether or not to include external views such as channels or live tv", IsRequired = true, DataType = "boolean", ParameterType = "query", Verb = "GET")]
public bool? IncludeExternalContent { get; set; }
+
public bool IncludeHidden { get; set; }
public string PresetViews { get; set; }
@@ -80,6 +81,7 @@ namespace MediaBrowser.Api.UserLibrary
{
query.IncludeExternalContent = request.IncludeExternalContent.Value;
}
+
query.IncludeHidden = request.IncludeHidden;
if (!string.IsNullOrWhiteSpace(request.PresetViews))
@@ -129,7 +131,6 @@ namespace MediaBrowser.Api.UserLibrary
{
Name = i.Name,
Id = i.Id.ToString("N", CultureInfo.InvariantCulture)
-
})
.OrderBy(i => i.Name)
.ToArray();
@@ -141,6 +142,7 @@ namespace MediaBrowser.Api.UserLibrary
class SpecialViewOption
{
public string Name { get; set; }
+
public string Id { get; set; }
}
}