Update Jellyfin.Api/Controllers/LibraryController.cs

This commit is contained in:
Claus Vium 2020-11-11 10:49:00 +01:00 committed by GitHub
parent a7b3880d0e
commit 0b954df7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -710,8 +710,7 @@ namespace Jellyfin.Api.Controllers
var user = userId.HasValue && !userId.Equals(Guid.Empty)
? _userManager.GetUserById(userId.Value)
: null;
var dtoOptions = new DtoOptions()
.AddItemFields(fields)
var dtoOptions = new DtoOptions { Fields = fields }
.AddClientFields(Request);
var program = item as IHasProgramAttributes;