mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Null coalescing was not going to work anymore...
This commit is contained in:
parent
c21c678ed9
commit
dbccd8d1b6
@ -775,7 +775,7 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||
var ourRelease = movieData.releases.countries.FirstOrDefault(c => c.iso_3166_1.Equals(ConfigurationManager.Configuration.MetadataCountryCode, StringComparison.OrdinalIgnoreCase)) ?? new Country();
|
||||
var usRelease = movieData.releases.countries.FirstOrDefault(c => c.iso_3166_1.Equals("US", StringComparison.OrdinalIgnoreCase)) ?? new Country();
|
||||
var ratingPrefix = ConfigurationManager.Configuration.MetadataCountryCode.Equals("us", StringComparison.OrdinalIgnoreCase) ? "" : ConfigurationManager.Configuration.MetadataCountryCode +"-";
|
||||
movie.OfficialRating = ratingPrefix + ourRelease.certification ?? usRelease.certification;
|
||||
movie.OfficialRating = ourRelease.certification != null ? ratingPrefix + ourRelease.certification : usRelease.certification;
|
||||
|
||||
if (ourRelease.release_date > new DateTime(1900, 1, 1))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user