Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/4e2debd35416fbe4791fdf846db1f03bc02d3d9e You should set ROOT_URL correctly, otherwise the web may not work correctly.

updated unrated items

pull/702/head
Luke Pulverenti 9 years ago
parent c28c94a4e9
commit 4e2debd354

@ -243,6 +243,8 @@ namespace MediaBrowser.Server.Implementations.Localization
_allParentalRatings.TryAdd(countryCode, dict);
}
private readonly string[] _unratedValues = {"n/a", "unrated", "not rated"};
/// <summary>
/// Gets the rating level.
/// </summary>
@ -253,6 +255,11 @@ namespace MediaBrowser.Server.Implementations.Localization
throw new ArgumentNullException("rating");
}
if (_unratedValues.Contains(rating, StringComparer.OrdinalIgnoreCase))
{
return null;
}
// Fairly common for some users to have "Rated R" in their rating field
rating = rating.Replace("Rated ", string.Empty, StringComparison.OrdinalIgnoreCase);

Loading…
Cancel
Save