mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-23 18:44:45 +01:00
handle overview stripping
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user