mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-31 14:33:54 -04:00
Add start index to /Programs/Recommended endpoint (#13696)
This commit is contained in:
parent
0eed5ee79b
commit
e684f26c97
@ -698,6 +698,7 @@ public class LiveTvController : BaseJellyfinApiController
|
|||||||
/// Gets recommended live tv epgs.
|
/// Gets recommended live tv epgs.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="userId">Optional. filter by user id.</param>
|
/// <param name="userId">Optional. filter by user id.</param>
|
||||||
|
/// <param name="startIndex">Optional. The record index to start at. All items with a lower index will be dropped from the results.</param>
|
||||||
/// <param name="limit">Optional. The maximum number of records to return.</param>
|
/// <param name="limit">Optional. The maximum number of records to return.</param>
|
||||||
/// <param name="isAiring">Optional. Filter by programs that are currently airing, or not.</param>
|
/// <param name="isAiring">Optional. Filter by programs that are currently airing, or not.</param>
|
||||||
/// <param name="hasAired">Optional. Filter by programs that have completed airing, or not.</param>
|
/// <param name="hasAired">Optional. Filter by programs that have completed airing, or not.</param>
|
||||||
@ -720,6 +721,7 @@ public class LiveTvController : BaseJellyfinApiController
|
|||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
public async Task<ActionResult<QueryResult<BaseItemDto>>> GetRecommendedPrograms(
|
public async Task<ActionResult<QueryResult<BaseItemDto>>> GetRecommendedPrograms(
|
||||||
[FromQuery] Guid? userId,
|
[FromQuery] Guid? userId,
|
||||||
|
[FromQuery] int? startIndex,
|
||||||
[FromQuery] int? limit,
|
[FromQuery] int? limit,
|
||||||
[FromQuery] bool? isAiring,
|
[FromQuery] bool? isAiring,
|
||||||
[FromQuery] bool? hasAired,
|
[FromQuery] bool? hasAired,
|
||||||
@ -744,6 +746,7 @@ public class LiveTvController : BaseJellyfinApiController
|
|||||||
var query = new InternalItemsQuery(user)
|
var query = new InternalItemsQuery(user)
|
||||||
{
|
{
|
||||||
IsAiring = isAiring,
|
IsAiring = isAiring,
|
||||||
|
StartIndex = startIndex,
|
||||||
Limit = limit,
|
Limit = limit,
|
||||||
HasAired = hasAired,
|
HasAired = hasAired,
|
||||||
IsSeries = isSeries,
|
IsSeries = isSeries,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user