aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ItemsController.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-11-16 20:45:09 -0700
committercrobibero <cody@robibe.ro>2020-11-16 20:45:09 -0700
commit3b68ce1183c89cf79b38895d3401b7005674f79c (patch)
treeabe0b1b830bde9315eec10ee8331dcd6dfc2487b /Jellyfin.Api/Controllers/ItemsController.cs
parent2a0578ce1a711c712beee2bdf04610bf9c7742d6 (diff)
Fix build
Diffstat (limited to 'Jellyfin.Api/Controllers/ItemsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ItemsController.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs
index 5d2277ed4..43282b685 100644
--- a/Jellyfin.Api/Controllers/ItemsController.cs
+++ b/Jellyfin.Api/Controllers/ItemsController.cs
@@ -159,7 +159,7 @@ namespace Jellyfin.Api.Controllers
[FromQuery] bool? hasParentalRating,
[FromQuery] bool? isHd,
[FromQuery] bool? is4K,
- [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] string[] locationTypes,
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] LocationType[] locationTypes,
[FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] LocationType[] excludeLocationTypes,
[FromQuery] bool? isMissing,
[FromQuery] bool? isUnaired,
@@ -401,7 +401,7 @@ namespace Jellyfin.Api.Controllers
}
// Filter by Series Status
- if(seriesStatus.Length != 0)
+ if (seriesStatus.Length != 0)
{
query.SeriesStatuses = seriesStatus;
}
@@ -417,7 +417,7 @@ namespace Jellyfin.Api.Controllers
var requestedLocationTypes = locationTypes;
if (requestedLocationTypes.Length > 0 && requestedLocationTypes.Length < 4)
{
- query.IsVirtualItem = requestedLocationTypes.Contains(LocationType.Virtual.ToString());
+ query.IsVirtualItem = requestedLocationTypes.Contains(LocationType.Virtual);
}
}