diff options
| author | Zach Phelan <ZachCPhelan@gmail.com> | 2022-09-13 16:40:47 -0600 |
|---|---|---|
| committer | Zach Phelan <ZachCPhelan@gmail.com> | 2022-09-13 16:56:23 -0600 |
| commit | c71d6f2358ba8a5b1f80a2bef41b6f438c06d03c (patch) | |
| tree | 94d022e3f22b8f01c97688d312038e4db561efb9 /Jellyfin.Api/Controllers/UserLibraryController.cs | |
| parent | 0246ba1fb4c3b01fa1be51a57275de7fd2654c31 (diff) | |
Sort special features same as other spots, removing unnecssary function
Added to contributors
Diffstat (limited to 'Jellyfin.Api/Controllers/UserLibraryController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/UserLibraryController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/UserLibraryController.cs b/Jellyfin.Api/Controllers/UserLibraryController.cs index 1656a1e98..940fa27a7 100644 --- a/Jellyfin.Api/Controllers/UserLibraryController.cs +++ b/Jellyfin.Api/Controllers/UserLibraryController.cs @@ -233,7 +233,8 @@ namespace Jellyfin.Api.Controllers var dtoOptions = new DtoOptions().AddClientFields(Request); return Ok(item - .GetExtras(BaseItem.DisplayExtraTypes) + .GetExtras() + .Where(i => i.ExtraType.HasValue && BaseItem.DisplayExtraTypes.Contains(i.ExtraType.Value)) .Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user, item))); } |
