diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-11-10 10:34:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-10 10:34:42 +0100 |
| commit | d3eab357e33c0ef7e95385aaa8b9f219c1c0b991 (patch) | |
| tree | f0d12ed5060c4ec69ef98fcd61824bde6e586892 /Jellyfin.Api/Controllers/GenresController.cs | |
| parent | 477e7f78985372297f3611f47c932da6448d27d9 (diff) | |
| parent | 2ce9a56cae36f2538f6a3df7d1c46f65e39750bc (diff) | |
Merge pull request #4452 from crobibero/bind-image-type
Add ModelBinder to ImageType
Diffstat (limited to 'Jellyfin.Api/Controllers/GenresController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/GenresController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/GenresController.cs b/Jellyfin.Api/Controllers/GenresController.cs index 4e47658b0..f6e0772ec 100644 --- a/Jellyfin.Api/Controllers/GenresController.cs +++ b/Jellyfin.Api/Controllers/GenresController.cs @@ -4,6 +4,7 @@ using System.Linq; using Jellyfin.Api.Constants; using Jellyfin.Api.Extensions; using Jellyfin.Api.Helpers; +using Jellyfin.Api.ModelBinders; using Jellyfin.Data.Entities; using MediaBrowser.Controller.Dto; using MediaBrowser.Controller.Entities; @@ -77,7 +78,7 @@ namespace Jellyfin.Api.Controllers [FromQuery] string? includeItemTypes, [FromQuery] bool? isFavorite, [FromQuery] int? imageTypeLimit, - [FromQuery] ImageType[] enableImageTypes, + [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ImageType[] enableImageTypes, [FromQuery] Guid? userId, [FromQuery] string? nameStartsWithOrGreater, [FromQuery] string? nameStartsWith, |
