The Free Software Media System - Server Backend & API
Update LiveTvService (Channels and Recording)
Sven Van den brandee4564ac8607e
diff --git a/MediaBrowser.Api/LiveTv/LiveTvService.cs b/MediaBrowser.Api/LiveTv/LiveTvService.csindex 6a8457ecb2..6a914a35f8 100644--- a/MediaBrowser.Api/LiveTv/LiveTvService.cs+++ b/MediaBrowser.Api/LiveTv/LiveTvService.cs@@ -97,7 +97,7 @@ namespace MediaBrowser.Api.LiveTvvar 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.csindex 62bfdf3e58..a48a6a5515 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.csindex 20beb551d5..0b36c80239 100644--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs@@ -43,5 +43,10 @@ namespace MediaBrowser.Server.Implementations.LiveTvId = info.Id};}++ public RecordingInfo GetRecordingInfo(RecordingInfo info)+ {+ return info;+ }}}