diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-27 10:35:29 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-27 10:35:29 -0400 |
| commit | 4c87979cac4df6560145b96d440aeba967466951 (patch) | |
| tree | 3a7e3f94465c7c18345011046f4cd2c9f6de6144 /MediaBrowser.Server.Implementations | |
| parent | 6da117f606610337c54f5c6065590d018c84d4f8 (diff) | |
handle overview stripping
Diffstat (limited to 'MediaBrowser.Server.Implementations')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Dto/DtoService.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs index 3ca70de16..dae0470cf 100644 --- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs +++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs @@ -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 |
