Skip to content

Commit

Permalink
Changed HTSP field "summary" to correct name "subtitle". (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
lomion0815 authored May 20, 2024
1 parent 193b205 commit 5520eca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions TVHeadEnd/DataHelper/DvrDataHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,10 @@ public Task<IEnumerable<MyRecordingInfo>> buildDvrInfos(CancellationToken cancel
try
{
if (m.containsField("summary"))
if (m.containsField("subtitle"))
{
ri.EpisodeTitle = m.getString("summary");
ri.EpisodeTitle = m.getString("subtitle");
ri.IsSeries = true;
}
}
catch (InvalidCastException)
Expand Down
5 changes: 3 additions & 2 deletions TVHeadEnd/HTSP_Responses/GetEventsResponseHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ public void handleResponse(HTSMessage response)
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"))
Expand Down
2 changes: 1 addition & 1 deletion TVHeadEnd/RecordingsChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private ChannelItemInfo ConvertToChannelItem(MyRecordingInfo item)
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),
Expand Down

0 comments on commit 5520eca

Please sign in to comment.