aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/TrailersController.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2020-11-10 23:09:47 +0100
committerGitHub <noreply@github.com>2020-11-10 23:09:47 +0100
commita51ea55537a8f18c16184c8becf1a7a6f1722b23 (patch)
treeca717d1e85f282e3e47dedf3c1742fc032105daa /Jellyfin.Api/Controllers/TrailersController.cs
parentdc3b3bcfb1881743c078d13a100dc8f751ce6dff (diff)
parentf5b301dea66c6dd88ced57c0dbedf21b54145b5c (diff)
Merge pull request #4302 from crobibero/query-fields
Convert field string to enum.
Diffstat (limited to 'Jellyfin.Api/Controllers/TrailersController.cs')
-rw-r--r--Jellyfin.Api/Controllers/TrailersController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/TrailersController.cs b/Jellyfin.Api/Controllers/TrailersController.cs
index 6b4eee718..d78adcbcd 100644
--- a/Jellyfin.Api/Controllers/TrailersController.cs
+++ b/Jellyfin.Api/Controllers/TrailersController.cs
@@ -146,7 +146,7 @@ namespace Jellyfin.Api.Controllers
[FromQuery] string? searchTerm,
[FromQuery] string? sortOrder,
[FromQuery] string? parentId,
- [FromQuery] string? fields,
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
[FromQuery] string? excludeItemTypes,
[FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFilter[] filters,
[FromQuery] bool? isFavorite,