diff --git a/MediaBrowser.Api/ApiService.cs b/MediaBrowser.Api/ApiService.cs
index be99ef239..3a717b754 100644
--- a/MediaBrowser.Api/ApiService.cs
+++ b/MediaBrowser.Api/ApiService.cs
@@ -95,6 +95,9 @@ namespace MediaBrowser.Api
if (folder != null)
{
dto.SpecialCounts = folder.GetSpecialCounts(user);
+
+ dto.IsRoot = folder.IsRoot;
+ dto.IsVirtualFolder = folder.IsVirtualFolder;
}
return dto;
diff --git a/MediaBrowser.Model/DTO/DTOBaseItem.cs b/MediaBrowser.Model/DTO/DTOBaseItem.cs
index 76a9ea400..c9f16ed1d 100644
--- a/MediaBrowser.Model/DTO/DTOBaseItem.cs
+++ b/MediaBrowser.Model/DTO/DTOBaseItem.cs
@@ -49,6 +49,16 @@ namespace MediaBrowser.Model.DTO
public bool IsFolder { get; set; }
+ ///
+ /// If the item is a Folder this will determine if it's the Root or not
+ ///
+ public bool? IsRoot { get; set; }
+
+ ///
+ /// If the item is a Folder this will determine if it's a VF or not
+ ///
+ public bool? IsVirtualFolder { get; set; }
+
public Guid? ParentId { get; set; }
public string Type { get; set; }