mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
commit
ba4ca10ae2
@ -215,6 +215,7 @@ namespace MediaBrowser.Api.Reports
|
|||||||
|
|
||||||
Filter = i => ApplyAdditionalFilters(request, i, user, _libraryManager),
|
Filter = i => ApplyAdditionalFilters(request, i, user, _libraryManager),
|
||||||
|
|
||||||
|
IsFavorite = request.IsFavorite,
|
||||||
Limit = request.Limit,
|
Limit = request.Limit,
|
||||||
StartIndex = request.StartIndex,
|
StartIndex = request.StartIndex,
|
||||||
IsMissing = request.IsMissing,
|
IsMissing = request.IsMissing,
|
||||||
@ -301,8 +302,11 @@ namespace MediaBrowser.Api.Reports
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.HasQueryLimit)
|
if (request.HasQueryLimit == false)
|
||||||
query.Limit = request.Limit;
|
{
|
||||||
|
query.StartIndex = null;
|
||||||
|
query.Limit = null;
|
||||||
|
}
|
||||||
|
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
@ -168,6 +168,13 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
[ApiMember(Name = "Filters", Description = "Optional. Specify additional filters to apply. This allows multiple, comma delimeted. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
|
[ApiMember(Name = "Filters", Description = "Optional. Specify additional filters to apply. This allows multiple, comma delimeted. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
|
||||||
public string Filters { get; set; }
|
public string Filters { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the Isfavorite option
|
||||||
|
/// </summary>
|
||||||
|
/// <value>IsFavorite</value>
|
||||||
|
[ApiMember(Name = "IsFavorite", Description = "Optional filter by items that are marked as favorite, or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
|
||||||
|
public bool? IsFavorite { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the media types.
|
/// Gets or sets the media types.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -181,6 +181,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
|
|
||||||
Filter = i => ApplyAdditionalFilters(request, i, user, _libraryManager),
|
Filter = i => ApplyAdditionalFilters(request, i, user, _libraryManager),
|
||||||
|
|
||||||
|
IsFavorite = request.IsFavorite,
|
||||||
Limit = request.Limit,
|
Limit = request.Limit,
|
||||||
StartIndex = request.StartIndex,
|
StartIndex = request.StartIndex,
|
||||||
IsMissing = request.IsMissing,
|
IsMissing = request.IsMissing,
|
||||||
|
Loading…
Reference in New Issue
Block a user