diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-08-13 02:34:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-13 02:34:55 -0400 |
| commit | 9edd42c94cda3e2c025c01010da7f1d310903790 (patch) | |
| tree | b59bb33b1d3b549d4e6c8ada00bd9a2198004727 /MediaBrowser.Api/Library/LibraryStructureService.cs | |
| parent | 3878da49a5323902a77c997fe5a409bfbc125c1c (diff) | |
| parent | c18b8ec608b44e04d17a1ef02a615b985ca00e7b (diff) | |
Merge pull request #2052 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryStructureService.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs index 3cf0d5d93..3af213493 100644 --- a/MediaBrowser.Api/Library/LibraryStructureService.cs +++ b/MediaBrowser.Api/Library/LibraryStructureService.cs @@ -10,6 +10,7 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; using CommonIO; +using MediaBrowser.Controller.Configuration; namespace MediaBrowser.Api.Library { @@ -52,6 +53,8 @@ namespace MediaBrowser.Api.Library /// </summary> /// <value>The path.</value> public string[] Paths { get; set; } + + public LibraryOptions LibraryOptions { get; set; } } [Route("/Library/VirtualFolders", "DELETE")] @@ -190,7 +193,9 @@ namespace MediaBrowser.Api.Library /// <param name="request">The request.</param> public void Post(AddVirtualFolder request) { - _libraryManager.AddVirtualFolder(request.Name, request.CollectionType, request.Paths, request.RefreshLibrary); + var libraryOptions = request.LibraryOptions ?? new LibraryOptions(); + + _libraryManager.AddVirtualFolder(request.Name, request.CollectionType, request.Paths, libraryOptions, request.RefreshLibrary); } /// <summary> |
