From bd0ad4a5cd87fca5b75ee8eacdc76fe6cf2a287c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 15 Oct 2015 22:06:44 -0400 Subject: update library setup --- MediaBrowser.Api/Library/LibraryStructureService.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs') diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs index 42c6ef6e5..96af5240e 100644 --- a/MediaBrowser.Api/Library/LibraryStructureService.cs +++ b/MediaBrowser.Api/Library/LibraryStructureService.cs @@ -47,6 +47,12 @@ namespace MediaBrowser.Api.Library /// /// true if [refresh library]; otherwise, false. public bool RefreshLibrary { get; set; } + + /// + /// Gets or sets the path. + /// + /// The path. + public string Path { get; set; } } [Route("/Library/VirtualFolders", "DELETE")] @@ -216,6 +222,11 @@ namespace MediaBrowser.Api.Library } } + + if (!string.IsNullOrWhiteSpace(request.Path)) + { + LibraryHelpers.AddMediaPath(_fileSystem, request.Name, request.Path, _appPaths); + } } finally { -- cgit v1.2.3