update recordings
This commit is contained in:
parent
90843b218c
commit
823cb53ce0
|
@ -1526,10 +1526,11 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||||
dto.MediaSources = _mediaSourceManager().GetStaticMediaSources(tvChannel, true).ToList();
|
dto.MediaSources = _mediaSourceManager().GetStaticMediaSources(tvChannel, true).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dto.ChannelId = item.ChannelId;
|
||||||
|
|
||||||
var channelItem = item as IChannelItem;
|
var channelItem = item as IChannelItem;
|
||||||
if (channelItem != null)
|
if (channelItem != null)
|
||||||
{
|
{
|
||||||
dto.ChannelId = channelItem.ChannelId;
|
|
||||||
dto.ChannelName = _channelManagerFactory().GetChannel(channelItem.ChannelId).Name;
|
dto.ChannelName = _channelManagerFactory().GetChannel(channelItem.ChannelId).Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -515,7 +515,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
||||||
|
|
||||||
HttpRequestOptions httpRequestOptions = new HttpRequestOptions()
|
HttpRequestOptions httpRequestOptions = new HttpRequestOptions()
|
||||||
{
|
{
|
||||||
Url = mediaStreamInfo.Path + "?duration=" + duration.TotalSeconds.ToString(CultureInfo.InvariantCulture)
|
Url = mediaStreamInfo.Path
|
||||||
};
|
};
|
||||||
|
|
||||||
var info = GetProgramInfoFromCache(timer.ChannelId, timer.ProgramId);
|
var info = GetProgramInfoFromCache(timer.ChannelId, timer.ProgramId);
|
||||||
|
|
|
@ -1395,8 +1395,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||||
|
|
||||||
dto.Id = _tvDtoService.GetInternalProgramId(service.Name, program.ExternalId).ToString("N");
|
dto.Id = _tvDtoService.GetInternalProgramId(service.Name, program.ExternalId).ToString("N");
|
||||||
|
|
||||||
dto.ChannelId = item.ChannelId;
|
|
||||||
|
|
||||||
dto.StartDate = program.StartDate;
|
dto.StartDate = program.StartDate;
|
||||||
dto.IsRepeat = program.IsRepeat;
|
dto.IsRepeat = program.IsRepeat;
|
||||||
dto.EpisodeTitle = program.EpisodeTitle;
|
dto.EpisodeTitle = program.EpisodeTitle;
|
||||||
|
@ -1463,8 +1461,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||||
? null
|
? null
|
||||||
: _tvDtoService.GetInternalSeriesTimerId(service.Name, info.SeriesTimerId).ToString("N");
|
: _tvDtoService.GetInternalSeriesTimerId(service.Name, info.SeriesTimerId).ToString("N");
|
||||||
|
|
||||||
dto.ChannelId = item.ChannelId;
|
|
||||||
|
|
||||||
dto.StartDate = info.StartDate;
|
dto.StartDate = info.StartDate;
|
||||||
dto.RecordingStatus = info.Status;
|
dto.RecordingStatus = info.Status;
|
||||||
dto.IsRepeat = info.IsRepeat;
|
dto.IsRepeat = info.IsRepeat;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user