Skip to content

Commit

Permalink
discover tv vote average at most, vote count at most filters
Browse files Browse the repository at this point in the history
  • Loading branch information
angyanmark committed Mar 25, 2023
1 parent 0f2da9b commit 10b6058
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions TMDbLib/Objects/Discover/DiscoverTv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ public DiscoverTv WhereVoteAverageIsAtLeast(double score)
return this;
}

/// <summary>
/// Only include TV shows that are equal to, or have a lower average rating than this value. Expected value is a float.
/// </summary>
public DiscoverTv WhereVoteAverageIsAtMost(double score)
{
Parameters["vote_average.lte"] = score.ToString();
return this;
}

/// <summary>
/// Only include TV shows that are equal to, or have a vote count higher than this value. Expected value is an integer.
/// </summary>
Expand All @@ -134,6 +143,15 @@ public DiscoverTv WhereVoteCountIsAtLeast(int count)
return this;
}

/// <summary>
/// Only include TV shows that are equal to, or have a vote count lower than this value. Expected value is an integer.
/// </summary>
public DiscoverTv WhereVoteCountIsAtMost(int count)
{
Parameters["vote_count.lte"] = count.ToString();
return this;
}

/// <summary>
/// Specifies which language to use for translatable fields
/// </summary>
Expand Down

0 comments on commit 10b6058

Please sign in to comment.