소스 검색

restore people fields

Luke Pulverenti 9 년 전
부모
커밋
63f02be8d2
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs

+ 6 - 0
MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs

@@ -315,6 +315,12 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
             if (details.contentRating != null && details.contentRating.Count > 0)
             if (details.contentRating != null && details.contentRating.Count > 0)
             {
             {
                 info.OfficialRating = details.contentRating[0].code.Replace("TV", "TV-").Replace("--", "-");
                 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)
             if (details.descriptions != null)