aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO/FileRefresher.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-10-04 14:52:50 -0400
committerGitHub <noreply@github.com>2017-10-04 14:52:50 -0400
commit185fa7f5e76a9971e34c35783698d37902ed14cb (patch)
treea840cff09050c5c76645596bfd99bb5dfd5ad4a0 /Emby.Server.Implementations/IO/FileRefresher.cs
parentc67f03ee97019aff0af41e8c6f4f8525ef90b5e5 (diff)
parent1caae368d5f75d96dada65cd2175831982363c21 (diff)
Merge pull request #2941 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/IO/FileRefresher.cs')
-rw-r--r--Emby.Server.Implementations/IO/FileRefresher.cs17
1 files changed, 5 insertions, 12 deletions
diff --git a/Emby.Server.Implementations/IO/FileRefresher.cs b/Emby.Server.Implementations/IO/FileRefresher.cs
index 315bee103..85b8bddd2 100644
--- a/Emby.Server.Implementations/IO/FileRefresher.cs
+++ b/Emby.Server.Implementations/IO/FileRefresher.cs
@@ -154,20 +154,13 @@ namespace Emby.Server.Implementations.IO
.DistinctBy(i => i.Id)
.ToList();
- //foreach (var p in paths)
- //{
- // Logger.Info(p + " reports change.");
- //}
-
- // If the root folder changed, run the library task so the user can see it
- if (itemsToRefresh.Any(i => i is AggregateFolder))
- {
- LibraryManager.ValidateMediaLibrary(new SimpleProgress<double>(), CancellationToken.None);
- return;
- }
-
foreach (var item in itemsToRefresh)
{
+ if (item is AggregateFolder)
+ {
+ continue;
+ }
+
Logger.Info(item.Name + " (" + item.Path + ") will be refreshed.");
try