diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-15 22:06:44 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-15 22:06:44 -0400 |
| commit | bd0ad4a5cd87fca5b75ee8eacdc76fe6cf2a287c (patch) | |
| tree | 912b053249552e26e2f7da2c0c5f82562e9ccd63 /MediaBrowser.Api/Library/LibraryStructureService.cs | |
| parent | b895a837eec19540c30f7b28870fedf96e94d115 (diff) | |
update library setup
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryStructureService.cs | 11 |
1 files changed, 11 insertions, 0 deletions
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 /// </summary> /// <value><c>true</c> if [refresh library]; otherwise, <c>false</c>.</value> public bool RefreshLibrary { get; set; } + + /// <summary> + /// Gets or sets the path. + /// </summary> + /// <value>The path.</value> + 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 { |
