mirror of
https://github.com/jellyfin/TMDbLib.git
synced 2024-11-30 09:10:37 +00:00
discover movie runtime at least, runtime at most filters
This commit is contained in:
parent
6420364178
commit
0f2da9b626
@ -374,6 +374,24 @@ namespace TMDbLib.Objects.Discover
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Only include movies that are equal to, or have a runtime higher than this value. Expected value is an integer (minutes).
|
||||
/// </summary>
|
||||
public DiscoverMovie WhereRuntimeIsAtLeast(int minutes)
|
||||
{
|
||||
Parameters["with_runtime.gte"] = minutes.ToString();
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Only include movies that are equal to, or have a runtime lower than this value. Expected value is an integer (minutes).
|
||||
/// </summary>
|
||||
public DiscoverMovie WhereRuntimeIsAtMost(int minutes)
|
||||
{
|
||||
Parameters["with_runtime.lte"] = minutes.ToString();
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Filter movies by their vote average and only include those that have an average rating that is equal to or higher than the specified value. Expected value is a float.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user