handle overview stripping

This commit is contained in:
Luke Pulverenti
2014-05-27 10:35:29 -04:00
parent 6da117f606
commit 4c87979cac
3 changed files with 15 additions and 5 deletions

View File

@@ -773,9 +773,17 @@ namespace MediaBrowser.Server.Implementations.Dto
if (fields.Contains(ItemFields.Overview))
{
var strippedOverview = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
// TODO: Remove this after a while, since it's been moved to the providers
if (item is MusicArtist)
{
var strippedOverview = string.IsNullOrEmpty(item.Overview) ? item.Overview : item.Overview.StripHtml();
dto.Overview = strippedOverview;
dto.Overview = strippedOverview;
}
else
{
dto.Overview = item.Overview;
}
}
// If there are no backdrops, indicate what parent has them in case the Ui wants to allow inheritance