소스 검색

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
         {