aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/GenresController.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-10-29 11:17:13 -0600
committercrobibero <cody@robibe.ro>2020-10-29 11:17:13 -0600
commit372f0eb38a9c0803d69d5dc3c4f0fdedd948cd0c (patch)
tree2b05adc70680fbc27cfd740dd251fbaa59e645dc /Jellyfin.Api/Controllers/GenresController.cs
parentb9406e5444ce8f71ab0ec4e40a9d189a881d232e (diff)
Remove AddItemFields
Diffstat (limited to 'Jellyfin.Api/Controllers/GenresController.cs')
-rw-r--r--Jellyfin.Api/Controllers/GenresController.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/GenresController.cs b/Jellyfin.Api/Controllers/GenresController.cs
index 9e71e82a3..da774f7f1 100644
--- a/Jellyfin.Api/Controllers/GenresController.cs
+++ b/Jellyfin.Api/Controllers/GenresController.cs
@@ -114,8 +114,7 @@ namespace Jellyfin.Api.Controllers
[FromQuery] bool? enableImages = true,
[FromQuery] bool enableTotalRecordCount = true)
{
- var dtoOptions = new DtoOptions()
- .AddItemFields(fields)
+ var dtoOptions = new DtoOptions{ Fields = fields }
.AddClientFields(Request)
.AddAdditionalDtoOptions(enableImages, enableUserData, imageTypeLimit, enableImageTypes);