浏览代码

resolve audio channel playback

Luke Pulverenti 9 年之前
父节点
当前提交
504c9e34c0
共有 2 个文件被更改,包括 5 次插入17 次删除
  1. 5 0
      MediaBrowser.Controller/Entities/BaseItem.cs
  2. 0 17
      MediaBrowser.Controller/Entities/Video.cs

+ 5 - 0
MediaBrowser.Controller/Entities/BaseItem.cs

@@ -255,6 +255,11 @@ namespace MediaBrowser.Controller.Entities
 
                 if (string.IsNullOrWhiteSpace(Path))
                 {
+                    if (SourceType == SourceType.Channel)
+                    {
+                        return LocationType.Remote;
+                    }
+
                     return LocationType.Virtual;
                 }
 

+ 0 - 17
MediaBrowser.Controller/Entities/Video.cs

@@ -79,23 +79,6 @@ namespace MediaBrowser.Controller.Entities
                    locationType != LocationType.Virtual;
         }
 
-        [IgnoreDataMember]
-        public override LocationType LocationType
-        {
-            get
-            {
-                if (SourceType == SourceType.Channel)
-                {
-                    if (string.IsNullOrEmpty(Path))
-                    {
-                        return LocationType.Remote;
-                    }
-                }
-
-                return base.LocationType;
-            }
-        }
-
         [IgnoreDataMember]
         public override bool SupportsAddingToPlaylist
         {