Ver Fonte

#22 - Need to strip html tags from overviews

LukePulverenti há 12 anos atrás
pai
commit
37d27ec0c3
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      MediaBrowser.Controller/Library/DtoBuilder.cs

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

@@ -295,12 +295,12 @@ namespace MediaBrowser.Controller.Library
 
 
             if (fields.Contains(ItemFields.Overview))
             if (fields.Contains(ItemFields.Overview))
             {
             {
-                dto.Overview = item.Overview;
+                dto.OverviewHtml = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
             }
             }
 
 
             if (fields.Contains(ItemFields.OverviewHtml))
             if (fields.Contains(ItemFields.OverviewHtml))
             {
             {
-                dto.OverviewHtml = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
+                dto.Overview = item.Overview;
             }
             }
             
             
             // If there are no backdrops, indicate what parent has them in case the Ui wants to allow inheritance
             // If there are no backdrops, indicate what parent has them in case the Ui wants to allow inheritance