mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
restore people fields
This commit is contained in:
parent
918aa4cfd7
commit
63f02be8d2
|
@ -315,6 +315,12 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
|||
if (details.contentRating != null && details.contentRating.Count > 0)
|
||||
{
|
||||
info.OfficialRating = details.contentRating[0].code.Replace("TV", "TV-").Replace("--", "-");
|
||||
|
||||
var invalid = new[] { "N/A", "Approved", "Not Rated" };
|
||||
if (invalid.Contains(info.OfficialRating, StringComparer.OrdinalIgnoreCase))
|
||||
{
|
||||
info.OfficialRating = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (details.descriptions != null)
|
||||
|
|
Loading…
Reference in a new issue