fix rating filters

This commit is contained in:
Luke Pulverenti 2016-04-27 13:50:32 -04:00
parent 8499183d77
commit 50e29476f7
2 changed files with 6 additions and 6 deletions

View File

@ -326,15 +326,15 @@ namespace MediaBrowser.Api.Reports
}
// Min official rating
if (!string.IsNullOrEmpty(request.MinOfficialRating))
if (!string.IsNullOrWhiteSpace(request.MinOfficialRating))
{
query.MinParentalRating = _localization.GetRatingLevel(request.MinOfficialRating);
}
// Max official rating
if (!string.IsNullOrEmpty(request.MaxOfficialRating))
if (!string.IsNullOrWhiteSpace(request.MaxOfficialRating))
{
query.MaxParentalRating = _localization.GetRatingLevel(request.MinOfficialRating);
query.MaxParentalRating = _localization.GetRatingLevel(request.MaxOfficialRating);
}
// Artists

View File

@ -308,15 +308,15 @@ namespace MediaBrowser.Api.UserLibrary
}
// Min official rating
if (!string.IsNullOrEmpty(request.MinOfficialRating))
if (!string.IsNullOrWhiteSpace(request.MinOfficialRating))
{
query.MinParentalRating = _localization.GetRatingLevel(request.MinOfficialRating);
}
// Max official rating
if (!string.IsNullOrEmpty(request.MaxOfficialRating))
if (!string.IsNullOrWhiteSpace(request.MaxOfficialRating))
{
query.MaxParentalRating = _localization.GetRatingLevel(request.MinOfficialRating);
query.MaxParentalRating = _localization.GetRatingLevel(request.MaxOfficialRating);
}
// Artists