fixed uk ratings

This commit is contained in:
Luke Pulverenti
2013-07-20 14:17:04 -04:00
parent 1a1cfba795
commit 2f3cedd87a
2 changed files with 15 additions and 7 deletions

View File

@@ -237,6 +237,14 @@ namespace MediaBrowser.Server.Implementations.Localization
}
}
// Try and support ratings that are incorrectly prefixed with localization values (GB-PG, which is really just PG)
var index = rating.IndexOf('-');
if (index != -1)
{
return GetRatingLevel(rating.Substring(index + 1));
}
return value == null ? (int?)null : value.Value;
}
}