fixes #252 - Path not being removed properly

pull/702/head
Luke Pulverenti 12 years ago
parent 710c1073c1
commit 131ccc932e

@ -1,4 +1,5 @@
using MediaBrowser.Controller; using System.Threading;
using MediaBrowser.Controller;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Entities; using MediaBrowser.Model.Entities;
using ServiceStack.ServiceHost; using ServiceStack.ServiceHost;
@ -203,6 +204,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.AddVirtualFolder(request.Name, user, _appPaths); LibraryHelpers.AddVirtualFolder(request.Name, user, _appPaths);
} }
_libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
} }
/// <summary> /// <summary>
@ -221,6 +224,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.RenameVirtualFolder(request.Name, request.NewName, user, _appPaths); LibraryHelpers.RenameVirtualFolder(request.Name, request.NewName, user, _appPaths);
} }
_libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
} }
/// <summary> /// <summary>
@ -239,6 +244,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.RemoveVirtualFolder(request.Name, user, _appPaths); LibraryHelpers.RemoveVirtualFolder(request.Name, user, _appPaths);
} }
_libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
} }
/// <summary> /// <summary>
@ -257,6 +264,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.AddMediaPath(request.Name, request.Path, user, _appPaths); LibraryHelpers.AddMediaPath(request.Name, request.Path, user, _appPaths);
} }
_libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
} }
/// <summary> /// <summary>
@ -275,6 +284,8 @@ namespace MediaBrowser.Api.Library
LibraryHelpers.RemoveMediaPath(request.Name, request.Path, user, _appPaths); LibraryHelpers.RemoveMediaPath(request.Name, request.Path, user, _appPaths);
} }
_libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
} }
} }
} }

Loading…
Cancel
Save