aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Localization/LocalizationManager.cs
diff options
context:
space:
mode:
authorAmbulantRex <21176662+AmbulantRex@users.noreply.github.com>2023-04-15 07:11:33 -0600
committerGitHub <noreply@github.com>2023-04-15 07:11:33 -0600
commit4a0b135b7a18ae27d0a11905d31d2ba621079225 (patch)
tree3c10db9a166efae9e69f9f32cce5d86767523da5 /Emby.Server.Implementations/Localization/LocalizationManager.cs
parent7dd4201971f1bb19ea380f2ca83aed11206cfe97 (diff)
parentc2b88f1852b16c2dde69b13c89feb34f78268057 (diff)
Merge branch 'jellyfin:master' into whitelist-dlls
Diffstat (limited to 'Emby.Server.Implementations/Localization/LocalizationManager.cs')
-rw-r--r--Emby.Server.Implementations/Localization/LocalizationManager.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/Localization/LocalizationManager.cs b/Emby.Server.Implementations/Localization/LocalizationManager.cs
index 166b71b4a..96f435399 100644
--- a/Emby.Server.Implementations/Localization/LocalizationManager.cs
+++ b/Emby.Server.Implementations/Localization/LocalizationManager.cs
@@ -198,25 +198,25 @@ namespace Emby.Server.Implementations.Localization
}
// Minimum rating possible
- if (!ratings.Any(x => x.Value == 0))
+ if (ratings.All(x => x.Value != 0))
{
ratings.Add(new ParentalRating("Approved", 0));
}
// Matches PG (this has different age restrictions depending on country)
- if (!ratings.Any(x => x.Value == 10))
+ if (ratings.All(x => x.Value != 10))
{
ratings.Add(new ParentalRating("10", 10));
}
// Matches PG-13
- if (!ratings.Any(x => x.Value == 13))
+ if (ratings.All(x => x.Value != 13))
{
ratings.Add(new ParentalRating("13", 13));
}
// Matches TV-14
- if (!ratings.Any(x => x.Value == 14))
+ if (ratings.All(x => x.Value != 14))
{
ratings.Add(new ParentalRating("14", 14));
}
@@ -229,13 +229,13 @@ namespace Emby.Server.Implementations.Localization
}
// A lot of countries don't excplicitly have a seperate rating for adult content
- if (!ratings.Any(x => x.Value == 1000))
+ if (ratings.All(x => x.Value != 1000))
{
ratings.Add(new ParentalRating("XXX", 1000));
}
// A lot of countries don't excplicitly have a seperate rating for banned content
- if (!ratings.Any(x => x.Value == 1001))
+ if (ratings.All(x => x.Value != 1001))
{
ratings.Add(new ParentalRating("Banned", 1001));
}