mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-22 05:30:46 +02:00
fixed uk ratings
This commit is contained in:
parent
1a1cfba795
commit
2f3cedd87a
|
@ -237,6 +237,14 @@ namespace MediaBrowser.Server.Implementations.Localization
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Try and support ratings that are incorrectly prefixed with localization values (GB-PG, which is really just PG)
|
||||||
|
var index = rating.IndexOf('-');
|
||||||
|
|
||||||
|
if (index != -1)
|
||||||
|
{
|
||||||
|
return GetRatingLevel(rating.Substring(index + 1));
|
||||||
|
}
|
||||||
|
|
||||||
return value == null ? (int?)null : value.Value;
|
return value == null ? (int?)null : value.Value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
GB-U,1
|
U,1
|
||||||
GB-PG,5
|
PG,5
|
||||||
GB-12,6
|
12,6
|
||||||
GB-12A,7
|
12A,7
|
||||||
GB-15,8
|
15,8
|
||||||
GB-18,9
|
18,9
|
||||||
GB-R18,15
|
R18,15
|
Loading…
Reference in a new issue