aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-24 15:52:28 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-24 15:52:28 -0400
commit244be95e75044755d6220b94399c67f3add0e713 (patch)
tree45750eab043992a77c886f3e1820802e33ed3d86 /MediaBrowser.Api/UserLibrary
parent191befa7888bae6c4f4265200aa2bc0e1e96fbf1 (diff)
fixed typos
Diffstat (limited to 'MediaBrowser.Api/UserLibrary')
-rw-r--r--MediaBrowser.Api/UserLibrary/ItemsService.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs
index d3b9057464..6853e3cd5d 100644
--- a/MediaBrowser.Api/UserLibrary/ItemsService.cs
+++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs
@@ -144,15 +144,15 @@ namespace MediaBrowser.Api.UserLibrary
/// Gets or sets the min offical rating.
/// </summary>
/// <value>The min offical rating.</value>
- [ApiMember(Name = "MinOfficalRating", Description = "Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
- public string MinOfficalRating { get; set; }
+ [ApiMember(Name = "MinOfficialRating", Description = "Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
+ public string MinOfficialRating { get; set; }
/// <summary>
/// Gets or sets the max offical rating.
/// </summary>
/// <value>The max offical rating.</value>
- [ApiMember(Name = "MaxOfficalRating", Description = "Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
- public string MaxOfficalRating { get; set; }
+ [ApiMember(Name = "MaxOfficialRating", Description = "Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
+ public string MaxOfficialRating { get; set; }
/// <summary>
/// Gets the order by.
@@ -413,17 +413,17 @@ namespace MediaBrowser.Api.UserLibrary
}
// Min official rating
- if (!string.IsNullOrEmpty(request.MinOfficalRating))
+ if (!string.IsNullOrEmpty(request.MinOfficialRating))
{
- var level = Ratings.Level(request.MinOfficalRating);
+ var level = Ratings.Level(request.MinOfficialRating);
items = items.Where(i => Ratings.Level(i.CustomRating ?? i.OfficialRating) >= level);
}
// Max official rating
- if (!string.IsNullOrEmpty(request.MaxOfficalRating))
+ if (!string.IsNullOrEmpty(request.MaxOfficialRating))
{
- var level = Ratings.Level(request.MaxOfficalRating);
+ var level = Ratings.Level(request.MaxOfficialRating);
items = items.Where(i => Ratings.Level(i.CustomRating ?? i.OfficialRating) <= level);
}