Browse Source

#22 - Need to strip html tags from overviews

LukePulverenti 12 năm trước cách đây
mục cha
commit
2af33416a7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      MediaBrowser.Controller/Library/DtoBuilder.cs

+ 2 - 2
MediaBrowser.Controller/Library/DtoBuilder.cs

@@ -300,13 +300,13 @@ namespace MediaBrowser.Controller.Library
             {
                 var strippedOverview = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
 
-                if (fields.Contains(ItemFields.Overview))
+                if (hasOverview)
                 {
                     dto.Overview = strippedOverview;
                 }
 
                 // Only supply the html version if there was actually html content
-                if (fields.Contains(ItemFields.OverviewHtml) && !string.Equals(item.Overview, strippedOverview))
+                if (hasHtmlOverview)
                 {
                     dto.OverviewHtml = item.Overview;
                 }