diff options
| author | Bond-009 <bond.009@outlook.com> | 2024-07-29 22:19:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 22:19:37 +0200 |
| commit | 5d0c5fd40d3f91d12767b72d4e724f6fdda0dc79 (patch) | |
| tree | eb475bd84b50b0a19cb135ad73379d5956523b03 /Jellyfin.Api/Controllers | |
| parent | 57f95bdc32aa77e32c5ddf35932ea7e319c5afcd (diff) | |
| parent | 63b90ab45ca8c4d85e1930f241ce24a9bff531eb (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.cs | 2 |
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); |
