aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-07-29 22:19:37 +0200
committerGitHub <noreply@github.com>2024-07-29 22:19:37 +0200
commit5d0c5fd40d3f91d12767b72d4e724f6fdda0dc79 (patch)
treeeb475bd84b50b0a19cb135ad73379d5956523b03 /Jellyfin.Api/Controllers
parent57f95bdc32aa77e32c5ddf35932ea7e319c5afcd (diff)
parent63b90ab45ca8c4d85e1930f241ce24a9bff531eb (diff)
Merge pull request #11432 from Bond-009/dtonullable
Enable nullable for DtoService and DtoOptions
Diffstat (limited to 'Jellyfin.Api/Controllers')
-rw-r--r--Jellyfin.Api/Controllers/LiveTvController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LiveTvController.cs b/Jellyfin.Api/Controllers/LiveTvController.cs
index 0cf36f57e..6c3d01103 100644
--- a/Jellyfin.Api/Controllers/LiveTvController.cs
+++ b/Jellyfin.Api/Controllers/LiveTvController.cs
@@ -688,7 +688,7 @@ public class LiveTvController : BaseJellyfinApiController
}
}
- var dtoOptions = new DtoOptions { Fields = body.Fields }
+ var dtoOptions = new DtoOptions { Fields = body.Fields ?? [] }
.AddClientFields(User)
.AddAdditionalDtoOptions(body.EnableImages, body.EnableUserData, body.ImageTypeLimit, body.EnableImageTypes ?? []);
return await _liveTvManager.GetPrograms(query, dtoOptions, CancellationToken.None).ConfigureAwait(false);