aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/ItemsService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-05-06 01:18:54 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-05-06 01:18:54 -0400
commit59f2463efd39e7e69f62dba7c20c4f8cfc96fe94 (patch)
treeb500e24a2e72539faaaff1fb706b20c8cf635012 /MediaBrowser.Api/UserLibrary/ItemsService.cs
parent91cb7e06e9934d43740f8899a30a771625a08be3 (diff)
update nuget
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/ItemsService.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs
index 5d267d059..f8580d328 100644
--- a/MediaBrowser.Api/UserLibrary/ItemsService.cs
+++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs
@@ -328,7 +328,15 @@ namespace MediaBrowser.Api.UserLibrary
if (!string.IsNullOrEmpty(request.LocationTypes))
{
- query.LocationTypes = request.LocationTypes.Split(',').Select(d => (LocationType)Enum.Parse(typeof(LocationType), d, true)).ToArray();
+ var requestedLocationTypes =
+ request.LocationTypes.Split(',')
+ .Select(d => (LocationType) Enum.Parse(typeof (LocationType), d, true))
+ .ToList();
+
+ if (requestedLocationTypes.Count > 0 && requestedLocationTypes.Count < 4)
+ {
+ query.IsVirtualItem = requestedLocationTypes.Contains(LocationType.Virtual);
+ }
}
// Min official rating