diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-04 07:41:12 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-04 07:41:12 -0500 |
| commit | 60d3f475033cef64a8f3153beb910e48529c8e16 (patch) | |
| tree | 7774f0c55cebc17f459965e03094d05e88f465f2 /MediaBrowser.Controller | |
| parent | 7ca1cd8795c465953ddb4560ce62fe6efba9f9d3 (diff) | |
add server management to web client
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index d82ef3f56..0b61262dc 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -202,12 +202,12 @@ namespace MediaBrowser.Controller.Entities return LocationType.Offline; } - if (string.IsNullOrEmpty(Path)) + if (string.IsNullOrWhiteSpace(Path)) { return LocationType.Virtual; } - return System.IO.Path.IsPathRooted(Path) ? LocationType.FileSystem : LocationType.Remote; + return FileSystem.IsPathFile(Path) ? LocationType.FileSystem : LocationType.Remote; } } |
