|
|
|
@ -11,6 +11,7 @@ using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using CommonIO;
|
|
|
|
|
using MediaBrowser.Controller.Configuration;
|
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Api.Library
|
|
|
|
@ -140,6 +141,14 @@ namespace MediaBrowser.Api.Library
|
|
|
|
|
public bool RefreshLibrary { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Route("/Library/VirtualFolders/LibraryOptions", "POST")]
|
|
|
|
|
public class UpdateLibraryOptions : IReturnVoid
|
|
|
|
|
{
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public LibraryOptions LibraryOptions { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class LibraryStructureService
|
|
|
|
|
/// </summary>
|
|
|
|
@ -188,6 +197,13 @@ namespace MediaBrowser.Api.Library
|
|
|
|
|
return ToOptimizedSerializedResultUsingCache(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Post(UpdateLibraryOptions request)
|
|
|
|
|
{
|
|
|
|
|
var collectionFolder = (CollectionFolder)_libraryManager.GetItemById(request.Id);
|
|
|
|
|
|
|
|
|
|
collectionFolder.UpdateLibraryOptions(request.LibraryOptions);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Posts the specified request.
|
|
|
|
|
/// </summary>
|
|
|
|
|