|
@@ -56,7 +56,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
/// <param name="id">The item id.</param>
|
|
|
/// <param name="userId">Optional. Filter by user id, and attach user data.</param>
|
|
|
/// <param name="limit">Optional. The maximum number of records to return.</param>
|
|
|
- /// <param name="fields">Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.</param>
|
|
|
+ /// <param name="fields">Optional. Specify additional fields of information to return in the output.</param>
|
|
|
/// <param name="enableImages">Optional. Include image information in output.</param>
|
|
|
/// <param name="enableUserData">Optional. Include user data.</param>
|
|
|
/// <param name="imageTypeLimit">Optional. The max number of images to return, per image type.</param>
|
|
@@ -69,7 +69,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
[FromRoute, Required] Guid id,
|
|
|
[FromQuery] Guid? userId,
|
|
|
[FromQuery] int? limit,
|
|
|
- [FromQuery] string? fields,
|
|
|
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
|
|
|
[FromQuery] bool? enableImages,
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
@@ -79,8 +79,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)
|
|
|
.AddAdditionalDtoOptions(enableImages, enableUserData, imageTypeLimit, enableImageTypes!);
|
|
|
var items = _musicManager.GetInstantMixFromItem(item, user, dtoOptions);
|
|
@@ -93,7 +92,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
/// <param name="id">The item id.</param>
|
|
|
/// <param name="userId">Optional. Filter by user id, and attach user data.</param>
|
|
|
/// <param name="limit">Optional. The maximum number of records to return.</param>
|
|
|
- /// <param name="fields">Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.</param>
|
|
|
+ /// <param name="fields">Optional. Specify additional fields of information to return in the output.</param>
|
|
|
/// <param name="enableImages">Optional. Include image information in output.</param>
|
|
|
/// <param name="enableUserData">Optional. Include user data.</param>
|
|
|
/// <param name="imageTypeLimit">Optional. The max number of images to return, per image type.</param>
|
|
@@ -106,7 +105,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
[FromRoute, Required] Guid id,
|
|
|
[FromQuery] Guid? userId,
|
|
|
[FromQuery] int? limit,
|
|
|
- [FromQuery] string? fields,
|
|
|
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
|
|
|
[FromQuery] bool? enableImages,
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
@@ -116,8 +115,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)
|
|
|
.AddAdditionalDtoOptions(enableImages, enableUserData, imageTypeLimit, enableImageTypes!);
|
|
|
var items = _musicManager.GetInstantMixFromItem(album, user, dtoOptions);
|
|
@@ -130,7 +128,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
/// <param name="id">The item id.</param>
|
|
|
/// <param name="userId">Optional. Filter by user id, and attach user data.</param>
|
|
|
/// <param name="limit">Optional. The maximum number of records to return.</param>
|
|
|
- /// <param name="fields">Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.</param>
|
|
|
+ /// <param name="fields">Optional. Specify additional fields of information to return in the output.</param>
|
|
|
/// <param name="enableImages">Optional. Include image information in output.</param>
|
|
|
/// <param name="enableUserData">Optional. Include user data.</param>
|
|
|
/// <param name="imageTypeLimit">Optional. The max number of images to return, per image type.</param>
|
|
@@ -143,7 +141,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
[FromRoute, Required] Guid id,
|
|
|
[FromQuery] Guid? userId,
|
|
|
[FromQuery] int? limit,
|
|
|
- [FromQuery] string? fields,
|
|
|
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
|
|
|
[FromQuery] bool? enableImages,
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
@@ -153,8 +151,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)
|
|
|
.AddAdditionalDtoOptions(enableImages, enableUserData, imageTypeLimit, enableImageTypes!);
|
|
|
var items = _musicManager.GetInstantMixFromItem(playlist, user, dtoOptions);
|
|
@@ -167,7 +164,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
/// <param name="name">The genre name.</param>
|
|
|
/// <param name="userId">Optional. Filter by user id, and attach user data.</param>
|
|
|
/// <param name="limit">Optional. The maximum number of records to return.</param>
|
|
|
- /// <param name="fields">Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.</param>
|
|
|
+ /// <param name="fields">Optional. Specify additional fields of information to return in the output.</param>
|
|
|
/// <param name="enableImages">Optional. Include image information in output.</param>
|
|
|
/// <param name="enableUserData">Optional. Include user data.</param>
|
|
|
/// <param name="imageTypeLimit">Optional. The max number of images to return, per image type.</param>
|
|
@@ -180,7 +177,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
[FromRoute, Required] string name,
|
|
|
[FromQuery] Guid? userId,
|
|
|
[FromQuery] int? limit,
|
|
|
- [FromQuery] string? fields,
|
|
|
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
|
|
|
[FromQuery] bool? enableImages,
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
@@ -189,8 +186,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)
|
|
|
.AddAdditionalDtoOptions(enableImages, enableUserData, imageTypeLimit, enableImageTypes!);
|
|
|
var items = _musicManager.GetInstantMixFromGenres(new[] { name }, user, dtoOptions);
|
|
@@ -203,7 +199,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
/// <param name="id">The item id.</param>
|
|
|
/// <param name="userId">Optional. Filter by user id, and attach user data.</param>
|
|
|
/// <param name="limit">Optional. The maximum number of records to return.</param>
|
|
|
- /// <param name="fields">Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.</param>
|
|
|
+ /// <param name="fields">Optional. Specify additional fields of information to return in the output.</param>
|
|
|
/// <param name="enableImages">Optional. Include image information in output.</param>
|
|
|
/// <param name="enableUserData">Optional. Include user data.</param>
|
|
|
/// <param name="imageTypeLimit">Optional. The max number of images to return, per image type.</param>
|
|
@@ -216,7 +212,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
[FromRoute, Required] Guid id,
|
|
|
[FromQuery] Guid? userId,
|
|
|
[FromQuery] int? limit,
|
|
|
- [FromQuery] string? fields,
|
|
|
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
|
|
|
[FromQuery] bool? enableImages,
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
@@ -226,8 +222,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)
|
|
|
.AddAdditionalDtoOptions(enableImages, enableUserData, imageTypeLimit, enableImageTypes!);
|
|
|
var items = _musicManager.GetInstantMixFromItem(item, user, dtoOptions);
|
|
@@ -240,7 +235,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
/// <param name="id">The item id.</param>
|
|
|
/// <param name="userId">Optional. Filter by user id, and attach user data.</param>
|
|
|
/// <param name="limit">Optional. The maximum number of records to return.</param>
|
|
|
- /// <param name="fields">Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.</param>
|
|
|
+ /// <param name="fields">Optional. Specify additional fields of information to return in the output.</param>
|
|
|
/// <param name="enableImages">Optional. Include image information in output.</param>
|
|
|
/// <param name="enableUserData">Optional. Include user data.</param>
|
|
|
/// <param name="imageTypeLimit">Optional. The max number of images to return, per image type.</param>
|
|
@@ -253,7 +248,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
[FromRoute, Required] Guid id,
|
|
|
[FromQuery] Guid? userId,
|
|
|
[FromQuery] int? limit,
|
|
|
- [FromQuery] string? fields,
|
|
|
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
|
|
|
[FromQuery] bool? enableImages,
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
@@ -263,8 +258,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)
|
|
|
.AddAdditionalDtoOptions(enableImages, enableUserData, imageTypeLimit, enableImageTypes!);
|
|
|
var items = _musicManager.GetInstantMixFromItem(item, user, dtoOptions);
|
|
@@ -277,7 +271,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
/// <param name="id">The item id.</param>
|
|
|
/// <param name="userId">Optional. Filter by user id, and attach user data.</param>
|
|
|
/// <param name="limit">Optional. The maximum number of records to return.</param>
|
|
|
- /// <param name="fields">Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.</param>
|
|
|
+ /// <param name="fields">Optional. Specify additional fields of information to return in the output.</param>
|
|
|
/// <param name="enableImages">Optional. Include image information in output.</param>
|
|
|
/// <param name="enableUserData">Optional. Include user data.</param>
|
|
|
/// <param name="imageTypeLimit">Optional. The max number of images to return, per image type.</param>
|
|
@@ -290,7 +284,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
[FromRoute, Required] Guid id,
|
|
|
[FromQuery] Guid? userId,
|
|
|
[FromQuery] int? limit,
|
|
|
- [FromQuery] string? fields,
|
|
|
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
|
|
|
[FromQuery] bool? enableImages,
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
@@ -300,8 +294,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)
|
|
|
.AddAdditionalDtoOptions(enableImages, enableUserData, imageTypeLimit, enableImageTypes!);
|
|
|
var items = _musicManager.GetInstantMixFromItem(item, user, dtoOptions);
|