|
|
@ -237,14 +237,6 @@ 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;
|
|
|
|
return value == null ? (int?)null : value.Value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|