diff options
| author | Tim Eisele <Ghost_of_Stone@web.de> | 2025-03-31 05:51:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-30 21:51:54 -0600 |
| commit | 3fc3b04daf929d1d3a9533fc410cb77885eb2e8a (patch) | |
| tree | fe15e4d6c24780f9efd393df845cd3099a8f18d6 /Jellyfin.Api/Controllers/LocalizationController.cs | |
| parent | 2ace8803453b235b0b0ae29f0069f9e5a3c069c8 (diff) | |
Rework parental ratings (#12615)
Diffstat (limited to 'Jellyfin.Api/Controllers/LocalizationController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/LocalizationController.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/LocalizationController.cs b/Jellyfin.Api/Controllers/LocalizationController.cs index f65d95c41..bbce5a9e1 100644 --- a/Jellyfin.Api/Controllers/LocalizationController.cs +++ b/Jellyfin.Api/Controllers/LocalizationController.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using Jellyfin.Api.Constants; using MediaBrowser.Common.Api; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Globalization; @@ -45,7 +44,7 @@ public class LocalizationController : BaseJellyfinApiController /// <returns>An <see cref="OkResult"/> containing the list of countries.</returns> [HttpGet("Countries")] [ProducesResponseType(StatusCodes.Status200OK)] - public ActionResult<IEnumerable<CountryInfo>> GetCountries() + public ActionResult<IReadOnlyList<CountryInfo>> GetCountries() { return Ok(_localization.GetCountries()); } @@ -57,7 +56,7 @@ public class LocalizationController : BaseJellyfinApiController /// <returns>An <see cref="OkResult"/> containing the list of parental ratings.</returns> [HttpGet("ParentalRatings")] [ProducesResponseType(StatusCodes.Status200OK)] - public ActionResult<IEnumerable<ParentalRating>> GetParentalRatings() + public ActionResult<IReadOnlyList<ParentalRating>> GetParentalRatings() { return Ok(_localization.GetParentalRatings()); } |
