@ -46,7 +46,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
RequiredPostPaddingSeconds = info . RequiredPostPaddingSeconds ,
RequiredPostPaddingSeconds = info . RequiredPostPaddingSeconds ,
RequiredPrePaddingSeconds = info . RequiredPrePaddingSeconds ,
RequiredPrePaddingSeconds = info . RequiredPrePaddingSeconds ,
ExternalChannelId = info . ChannelId ,
ExternalChannelId = info . ChannelId ,
ExternalSeriesTimerId = info . SeriesTimerId
ExternalSeriesTimerId = info . SeriesTimerId ,
ServiceName = service . Name
} ;
} ;
var duration = info . EndDate - info . StartDate ;
var duration = info . EndDate - info . StartDate ;
@ -71,7 +72,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv
Name = info . Name ,
Name = info . Name ,
StartDate = info . StartDate ,
StartDate = info . StartDate ,
ExternalId = info . Id ,
ExternalId = info . Id ,
ChannelId = GetInternalChannelId ( service . Name , info . ChannelId , info . ChannelName ) . ToString ( "N" ) ,
RequestedPostPaddingSeconds = info . RequestedPostPaddingSeconds ,
RequestedPostPaddingSeconds = info . RequestedPostPaddingSeconds ,
RequestedPrePaddingSeconds = info . RequestedPrePaddingSeconds ,
RequestedPrePaddingSeconds = info . RequestedPrePaddingSeconds ,
RequiredPostPaddingSeconds = info . RequiredPostPaddingSeconds ,
RequiredPostPaddingSeconds = info . RequiredPostPaddingSeconds ,
@ -80,9 +80,15 @@ namespace MediaBrowser.Server.Implementations.LiveTv
Priority = info . Priority ,
Priority = info . Priority ,
RecurrenceType = info . RecurrenceType ,
RecurrenceType = info . RecurrenceType ,
ExternalChannelId = info . ChannelId ,
ExternalChannelId = info . ChannelId ,
ExternalProgramId = info . ProgramId
ExternalProgramId = info . ProgramId ,
ServiceName = service . Name
} ;
} ;
if ( ! string . IsNullOrEmpty ( info . ChannelId ) )
{
dto . ChannelId = GetInternalChannelId ( service . Name , info . ChannelId , info . ChannelName ) . ToString ( "N" ) ;
}
if ( ! string . IsNullOrEmpty ( info . ProgramId ) )
if ( ! string . IsNullOrEmpty ( info . ProgramId ) )
{
{
dto . ProgramId = GetInternalProgramId ( service . Name , info . ProgramId ) . ToString ( "N" ) ;
dto . ProgramId = GetInternalProgramId ( service . Name , info . ProgramId ) . ToString ( "N" ) ;
@ -139,7 +145,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
CommunityRating = info . CommunityRating ,
CommunityRating = info . CommunityRating ,
OfficialRating = info . OfficialRating ,
OfficialRating = info . OfficialRating ,
Audio = info . Audio ,
Audio = info . Audio ,
IsHD = info . IsHD
IsHD = info . IsHD ,
ServiceName = service . Name
} ;
} ;
if ( user ! = null )
if ( user ! = null )