Browse Source

Check location type in CreateResolveArgs

Eric Reed 12 năm trước cách đây
mục cha
commit
13e6819ddd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      MediaBrowser.Controller/Entities/BaseItem.cs

+ 1 - 1
MediaBrowser.Controller/Entities/BaseItem.cs

@@ -313,7 +313,7 @@ namespace MediaBrowser.Controller.Entities
             var path = Path;
 
             // non file-system entries will not have a path
-            if (string.IsNullOrEmpty(path))
+            if (this.LocationType != LocationType.FileSystem || string.IsNullOrEmpty(path))
             {
                 return new ItemResolveArgs(ConfigurationManager.ApplicationPaths)
                 {