aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryStructureService.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-12-04 15:07:56 -0500
committerEric Reed <ebr@mediabrowser3.com>2013-12-04 15:07:56 -0500
commit6819be81601f6a95a60ce2735474ae0015d19bff (patch)
tree7e2743455e53d4a028fae789f2fc74a7c5ae87b9 /MediaBrowser.Api/Library/LibraryStructureService.cs
parent190be6311fbdf3a73f9c8e330f44edafe7764284 (diff)
parentcb882a4b48e9cf03cd363c54d93338ad62153e7e (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryStructureService.cs33
1 files changed, 28 insertions, 5 deletions
diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs
index f3306bb63..198bec1a0 100644
--- a/MediaBrowser.Api/Library/LibraryStructureService.cs
+++ b/MediaBrowser.Api/Library/LibraryStructureService.cs
@@ -286,7 +286,12 @@ namespace MediaBrowser.Api.Library
}
finally
{
- _directoryWatchers.Start();
+ // No need to start if scanning the library because it will handle it
+ if (!request.RefreshLibrary)
+ {
+ _directoryWatchers.Start();
+ }
+
_directoryWatchers.RemoveTempIgnore(virtualFolderPath);
}
@@ -353,7 +358,12 @@ namespace MediaBrowser.Api.Library
}
finally
{
- _directoryWatchers.Start();
+ // No need to start if scanning the library because it will handle it
+ if (!request.RefreshLibrary)
+ {
+ _directoryWatchers.Start();
+ }
+
_directoryWatchers.RemoveTempIgnore(currentPath);
_directoryWatchers.RemoveTempIgnore(newPath);
}
@@ -404,7 +414,12 @@ namespace MediaBrowser.Api.Library
}
finally
{
- _directoryWatchers.Start();
+ // No need to start if scanning the library because it will handle it
+ if (!request.RefreshLibrary)
+ {
+ _directoryWatchers.Start();
+ }
+
_directoryWatchers.RemoveTempIgnore(path);
}
@@ -442,7 +457,11 @@ namespace MediaBrowser.Api.Library
}
finally
{
- _directoryWatchers.Start();
+ // No need to start if scanning the library because it will handle it
+ if (!request.RefreshLibrary)
+ {
+ _directoryWatchers.Start();
+ }
}
if (request.RefreshLibrary)
@@ -479,7 +498,11 @@ namespace MediaBrowser.Api.Library
}
finally
{
- _directoryWatchers.Start();
+ // No need to start if scanning the library because it will handle it
+ if (!request.RefreshLibrary)
+ {
+ _directoryWatchers.Start();
+ }
}
if (request.RefreshLibrary)