normalize rating to fsk

pull/702/head
Luke Pulverenti 8 years ago
parent 87fa143f4c
commit f511feab89

@ -14,6 +14,7 @@ using System.Net;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using CommonIO; using CommonIO;
using MediaBrowser.Model.Extensions;
namespace MediaBrowser.Providers.Movies namespace MediaBrowser.Providers.Movies
{ {
@ -203,7 +204,11 @@ namespace MediaBrowser.Providers.Movies
if (ourRelease != null) if (ourRelease != null)
{ {
var ratingPrefix = string.Equals(preferredCountryCode, "us", StringComparison.OrdinalIgnoreCase) ? "" : preferredCountryCode + "-"; var ratingPrefix = string.Equals(preferredCountryCode, "us", StringComparison.OrdinalIgnoreCase) ? "" : preferredCountryCode + "-";
movie.OfficialRating = ratingPrefix + ourRelease.certification; var newRating = ratingPrefix + ourRelease.certification;
newRating = newRating.Replace("de-", "FSK-", StringComparison.OrdinalIgnoreCase);
movie.OfficialRating = newRating;
} }
else if (usRelease != null) else if (usRelease != null)
{ {

Loading…
Cancel
Save