aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/Folder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Entities/Folder.cs')
-rw-r--r--MediaBrowser.Controller/Entities/Folder.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs
index e782717e9..8605c7125 100644
--- a/MediaBrowser.Controller/Entities/Folder.cs
+++ b/MediaBrowser.Controller/Entities/Folder.cs
@@ -646,7 +646,7 @@ namespace MediaBrowser.Controller.Entities
cancellationToken.ThrowIfCancellationRequested();
//get the current valid children from filesystem (or wherever)
- var nonCachedChildren = GetNonCachedChildren();
+ var nonCachedChildren = IsOffline ? new BaseItem[] { } : GetNonCachedChildren();
if (nonCachedChildren == null) return; //nothing to validate
@@ -722,6 +722,8 @@ namespace MediaBrowser.Controller.Entities
else
{
item.IsOffline = true;
+
+ validChildren.Add(new Tuple<BaseItem, bool>(item, false));
}
}