mirror of
https://github.com/jellyfin/jellyfin-plugin-tvheadend.git
synced 2024-11-23 05:39:39 +00:00
Changed HTSP field "summary" to correct name "subtitle". (#85)
This commit is contained in:
parent
193b2050b3
commit
5520ecaf2f
@ -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)
|
||||
|
@ -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"))
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user