The Free Software Media System - Server Backend & API
restore people fields
Luke Pulverenti63f02be8d2e9
diff --git a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.csindex 1958cdb037..7a6860d65d 100644--- a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs@@ -315,6 +315,12 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listingsif (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)