2
0
Luke Pulverenti 9 жил өмнө
parent
commit
bcda2a8f0e

+ 11 - 0
MediaBrowser.Controller/Channels/IChannelItem.cs

@@ -0,0 +1,11 @@
+using MediaBrowser.Controller.Entities;
+
+namespace MediaBrowser.Controller.Channels
+{
+    public interface IChannelItem : IHasImages, IHasTags
+    {
+        string ChannelId { get; set; }
+
+        string ExternalId { get; set; }
+    }
+}

+ 18 - 0
MediaBrowser.Controller/Channels/IChannelMediaItem.cs

@@ -0,0 +1,18 @@
+using MediaBrowser.Model.Channels;
+using MediaBrowser.Model.Entities;
+using System.Collections.Generic;
+
+namespace MediaBrowser.Controller.Channels
+{
+    public interface IChannelMediaItem : IChannelItem
+    {
+        long? RunTimeTicks { get; set; }
+        string MediaType { get; }
+
+        ChannelMediaContentType ContentType { get; set; }
+
+        ExtraType? ExtraType { get; set; }
+
+        List<ChannelMediaInfo> ChannelMediaSources { get; set; }
+    }
+}

+ 2 - 0
MediaBrowser.Controller/MediaBrowser.Controller.csproj

@@ -85,8 +85,10 @@
     <Compile Include="Channels\ChannelSearchInfo.cs" />
     <Compile Include="Channels\ChannelVideoItem.cs" />
     <Compile Include="Channels\IChannel.cs" />
+    <Compile Include="Channels\IChannelItem.cs" />
     <Compile Include="Channels\IChannelManager.cs" />
     <Compile Include="Channels\Channel.cs" />
+    <Compile Include="Channels\IChannelMediaItem.cs" />
     <Compile Include="Channels\IHasCacheKey.cs" />
     <Compile Include="Channels\IIndexableChannel.cs" />
     <Compile Include="Channels\InternalAllChannelMediaQuery.cs" />

+ 1 - 1
MediaBrowser.Server.Implementations/LiveTv/TunerHosts/SatIp/SatIpDiscovery.cs

@@ -100,7 +100,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.SatIp
                 {
                     if (string.IsNullOrWhiteSpace(info.M3UUrl))
                     {
-                        return;
+                        //return;
                     }
 
                     await _liveTvManager.SaveTunerHost(new TunerHostInfo