From 60d3f475033cef64a8f3153beb910e48529c8e16 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 4 Nov 2014 07:41:12 -0500 Subject: add server management to web client --- MediaBrowser.Controller/Entities/BaseItem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index d82ef3f566..0b61262dc8 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; } } -- cgit v1.2.3