aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryStructureService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-21 02:02:00 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-21 02:02:00 -0400
commit131ccc932eb5ef018a87c2f7d623f05327f6d307 (patch)
treed96de3884f8edc3e136064ddd47e081bb9f3187f /MediaBrowser.Api/Library/LibraryStructureService.cs
parent710c1073c10b57099843ce701b7a100285daf4c5 (diff)
fixes #252 - Path not being removed properly
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryStructureService.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs
index d36f14867..88fc8b0af 100644
--- a/MediaBrowser.Api/Library/LibraryStructureService.cs
+++ b/MediaBrowser.Api/Library/LibraryStructureService.cs
@@ -1,4 +1,5 @@
-using MediaBrowser.Controller;
+using System.Threading;
+using MediaBrowser.Controller;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Entities;
using ServiceStack.ServiceHost;
@@ -203,6 +204,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.AddVirtualFolder(request.Name, user, _appPaths);
}
+
+ _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
}
/// <summary>
@@ -221,6 +224,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.RenameVirtualFolder(request.Name, request.NewName, user, _appPaths);
}
+
+ _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
}
/// <summary>
@@ -239,6 +244,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.RemoveVirtualFolder(request.Name, user, _appPaths);
}
+
+ _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
}
/// <summary>
@@ -257,6 +264,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.AddMediaPath(request.Name, request.Path, user, _appPaths);
}
+
+ _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
}
/// <summary>
@@ -275,6 +284,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.RemoveMediaPath(request.Name, request.Path, user, _appPaths);
}
+
+ _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
}
}
}