diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-21 02:02:00 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-21 02:02:00 -0400 |
| commit | 131ccc932eb5ef018a87c2f7d623f05327f6d307 (patch) | |
| tree | d96de3884f8edc3e136064ddd47e081bb9f3187f /MediaBrowser.Api/Library/LibraryStructureService.cs | |
| parent | 710c1073c10b57099843ce701b7a100285daf4c5 (diff) | |
fixes #252 - Path not being removed properly
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryStructureService.cs | 13 |
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); } } } |
