diff options
| author | Sven Van den brande <sven.vandenbrande@outlook.com> | 2013-11-10 22:47:26 +0100 |
|---|---|---|
| committer | Sven Van den brande <sven.vandenbrande@outlook.com> | 2013-11-10 22:47:26 +0100 |
| commit | e4564ac8607e45534bfb8132ccb410eab04f5528 (patch) | |
| tree | f2c47b300578a5908bf1fa068b92393ba52790a1 | |
| parent | 1f0fc33a862cc7d06cb0ea8429c8bdbb6bd93568 (diff) | |
Update LiveTvService (Channels and Recording)
| -rw-r--r-- | MediaBrowser.Api/LiveTv/LiveTvService.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Controller/LiveTv/ILiveTvManager.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Api/LiveTv/LiveTvService.cs b/MediaBrowser.Api/LiveTv/LiveTvService.cs index 6a8457ecb..6a914a35f 100644 --- a/MediaBrowser.Api/LiveTv/LiveTvService.cs +++ b/MediaBrowser.Api/LiveTv/LiveTvService.cs @@ -97,7 +97,7 @@ namespace MediaBrowser.Api.LiveTv var recordings = await Task.WhenAll(tasks).ConfigureAwait(false); - return recordings.SelectMany(i => i); + return recordings.SelectMany(i => i).Select(_liveTvManager.GetRecordingInfo); } public object Get(GetEpg request) diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs index 62bfdf3e5..a48a6a551 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs @@ -27,5 +27,7 @@ namespace MediaBrowser.Controller.LiveTv /// <param name="info">The info.</param> /// <returns>ChannelInfoDto.</returns> ChannelInfoDto GetChannelInfoDto(ChannelInfo info); + + RecordingInfo GetRecordingInfo(RecordingInfo info); } } diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs index 20beb551d..0b36c8023 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs @@ -43,5 +43,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv Id = info.Id }; } + + public RecordingInfo GetRecordingInfo(RecordingInfo info) + { + return info; + } } } |
