From bbc0a10c33a819b5ce14d1fb015998d8bf2c99b1 Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Mon, 30 Dec 2019 12:26:09 +0100 Subject: [PATCH] [PVR][guiinfo] Fixup multiline episode name strings (which do not fit in any way in our GUI). --- xbmc/pvr/PVRGUIInfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xbmc/pvr/PVRGUIInfo.cpp b/xbmc/pvr/PVRGUIInfo.cpp index 7988e610c53c2..91daa2a2d3e57 100644 --- a/xbmc/pvr/PVRGUIInfo.cpp +++ b/xbmc/pvr/PVRGUIInfo.cpp @@ -396,6 +396,8 @@ bool CPVRGUIInfo::GetListItemAndPlayerLabel(const CFileItem *item, const CGUIInf case VIDEOPLAYER_EPISODENAME: case LISTITEM_EPISODENAME: strValue = recording->EpisodeName(); + // fixup multiline episode name strings (which do not fit in any way in our GUI) + StringUtils::Replace(strValue, "\n", ", "); return true; case VIDEOPLAYER_CHANNEL_NAME: case LISTITEM_CHANNEL_NAME: @@ -574,7 +576,11 @@ bool CPVRGUIInfo::GetListItemAndPlayerLabel(const CFileItem *item, const CGUIInf case VIDEOPLAYER_EPISODENAME: case LISTITEM_EPISODENAME: if (!CServiceBroker::GetPVRManager().IsParentalLocked(epgTag)) + { strValue = epgTag->EpisodeName(); + // fixup multiline episode name strings (which do not fit in any way in our GUI) + StringUtils::Replace(strValue, "\n", ", "); + } return true; case VIDEOPLAYER_CAST: case LISTITEM_CAST: