mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Backport pull request #13639 from jellyfin/release-10.10.z
Support more rating formats
Original-merge: 4f94d23011
Merged-by: Bond-009 <bond.009@outlook.com>
Backported-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
parent
aad7506e85
commit
efb901c369
2 changed files with 8 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading.Tasks;
|
||||
using Emby.Server.Implementations.Localization;
|
||||
using MediaBrowser.Controller.Configuration;
|
||||
|
|
@ -116,6 +115,10 @@ namespace Jellyfin.Server.Implementations.Tests.Localization
|
|||
[InlineData("TV-MA", "US", 17)]
|
||||
[InlineData("XXX", "asdf", 1000)]
|
||||
[InlineData("Germany: FSK-18", "DE", 18)]
|
||||
[InlineData("Rated : R", "US", 17)]
|
||||
[InlineData("Rated: R", "US", 17)]
|
||||
[InlineData("Rated R", "US", 17)]
|
||||
[InlineData(" PG-13 ", "US", 13)]
|
||||
public async Task GetRatingLevel_GivenValidString_Success(string value, string countryCode, int expectedLevel)
|
||||
{
|
||||
var localizationManager = Setup(new ServerConfiguration()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue