Changed HTSP field "summary" to correct name "subtitle". (#85)

This commit is contained in:
Lomion0815 2024-05-21 01:18:48 +02:00 committed by GitHub
parent 193b2050b3
commit 5520ecaf2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View File

@ -205,9 +205,10 @@ namespace TVHeadEnd.DataHelper
try
{
if (m.containsField("summary"))
if (m.containsField("subtitle"))
{
ri.EpisodeTitle = m.getString("summary");
ri.EpisodeTitle = m.getString("subtitle");
ri.IsSeries = true;
}
}
catch (InvalidCastException)

View File

@ -131,9 +131,10 @@ namespace TVHeadEnd.HTSP_Responses
pi.Overview = currEventMessage.getString("description");
}
if (currEventMessage.containsField("summary"))
if (currEventMessage.containsField("subtitle"))
{
pi.EpisodeTitle = currEventMessage.getString("summary");
pi.EpisodeTitle = currEventMessage.getString("subtitle");
pi.IsSeries = true;
}
if (currEventMessage.containsField("firstAired"))

View File

@ -263,7 +263,7 @@ namespace TVHeadEnd
var channelItem = new ChannelItemInfo
{
Name = string.IsNullOrEmpty(item.EpisodeTitle) ? item.Name : item.EpisodeTitle,
SeriesName = !string.IsNullOrEmpty(item.EpisodeTitle) || item.IsSeries ? item.Name : null,
SeriesName = !string.IsNullOrEmpty(item.EpisodeTitle) ? item.Name : null,
OfficialRating = item.OfficialRating,
CommunityRating = item.CommunityRating,
ContentType = item.IsMovie ? ChannelMediaContentType.Movie : (item.IsSeries ? ChannelMediaContentType.Episode : ChannelMediaContentType.Clip),