浏览代码

fixed live tv endpoints

Luke Pulverenti 11 年之前
父节点
当前提交
b8c4056522
共有 2 个文件被更改,包括 3 次插入4 次删除
  1. 1 4
      MediaBrowser.Api/LiveTv/LiveTvService.cs
  2. 2 0
      MediaBrowser.ServerApplication/ApplicationHost.cs

+ 1 - 4
MediaBrowser.Api/LiveTv/LiveTvService.cs

@@ -42,10 +42,7 @@ namespace MediaBrowser.Api.LiveTv
 
         public object Get(GetChannels request)
         {
-            var services = _liveTvManager.Services;
-
-            var result = services.Select(GetServiceInfo)
-                .ToList();
+            var result = GetChannelsAsync(request).Result;
 
             return ToOptimizedResult(result);
         }

+ 2 - 0
MediaBrowser.ServerApplication/ApplicationHost.cs

@@ -455,6 +455,8 @@ namespace MediaBrowser.ServerApplication
             SessionManager.AddParts(GetExports<ISessionRemoteController>());
 
             ImageProcessor.AddParts(GetExports<IImageEnhancer>());
+
+            LiveTvManager.AddParts(GetExports<ILiveTvService>());
         }
 
         /// <summary>