aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/BaseItem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs4
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;
}
}