update recordings

This commit is contained in:
Luke Pulverenti 2015-08-17 00:08:33 -04:00
parent 90843b218c
commit 823cb53ce0
3 changed files with 3 additions and 6 deletions

View File

@ -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;
} }

View File

@ -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);

View File

@ -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;