aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/Folder.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-05-24 22:11:52 -0400
committerLuke <luke.pulverenti@gmail.com>2016-05-24 22:11:52 -0400
commita4260a2cbcdfa20eea7ab45899e1427943f52082 (patch)
tree2f267b1853b29500d07430d03a2b18447df184d9 /MediaBrowser.Controller/Entities/Folder.cs
parentba819f2e9503fa76c9eaec6d865263e71bf5913d (diff)
parentcc19c762b419fe427abb8d03a2625e2be796e443 (diff)
Merge pull request #1778 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Controller/Entities/Folder.cs')
-rw-r--r--MediaBrowser.Controller/Entities/Folder.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs
index ac49dc3b2..cbbd0ad68 100644
--- a/MediaBrowser.Controller/Entities/Folder.cs
+++ b/MediaBrowser.Controller/Entities/Folder.cs
@@ -461,17 +461,15 @@ namespace MediaBrowser.Controller.Entities
foreach (var item in itemsRemoved)
{
- if (item.LocationType == LocationType.Virtual ||
- item.LocationType == LocationType.Remote)
+ var itemLocationType = item.LocationType;
+ if (itemLocationType == LocationType.Virtual ||
+ itemLocationType == LocationType.Remote)
{
- // Don't remove these because there's no way to accurately validate them.
- validChildren.Add(item);
}
else if (!string.IsNullOrEmpty(item.Path) && IsPathOffline(item.Path))
{
await UpdateIsOffline(item, true).ConfigureAwait(false);
- validChildren.Add(item);
}
else
{