mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update library setup
This commit is contained in:
parent
b895a837ee
commit
bd0ad4a5cd
@ -54,8 +54,6 @@ namespace MediaBrowser.Api.Library
|
|||||||
/// <param name="virtualFolderName">Name of the virtual folder.</param>
|
/// <param name="virtualFolderName">Name of the virtual folder.</param>
|
||||||
/// <param name="path">The path.</param>
|
/// <param name="path">The path.</param>
|
||||||
/// <param name="appPaths">The app paths.</param>
|
/// <param name="appPaths">The app paths.</param>
|
||||||
/// <exception cref="System.IO.DirectoryNotFoundException">The path does not exist.</exception>
|
|
||||||
/// <exception cref="System.ArgumentException">The path is not valid.</exception>
|
|
||||||
public static void AddMediaPath(IFileSystem fileSystem, string virtualFolderName, string path, IServerApplicationPaths appPaths)
|
public static void AddMediaPath(IFileSystem fileSystem, string virtualFolderName, string path, IServerApplicationPaths appPaths)
|
||||||
{
|
{
|
||||||
if (!fileSystem.DirectoryExists(path))
|
if (!fileSystem.DirectoryExists(path))
|
||||||
|
@ -47,6 +47,12 @@ namespace MediaBrowser.Api.Library
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value><c>true</c> if [refresh library]; otherwise, <c>false</c>.</value>
|
/// <value><c>true</c> if [refresh library]; otherwise, <c>false</c>.</value>
|
||||||
public bool RefreshLibrary { get; set; }
|
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")]
|
[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
|
finally
|
||||||
{
|
{
|
||||||
|
@ -200,10 +200,10 @@
|
|||||||
<Content Include="dashboard-ui\components\imageuploader\imageuploader.template.html">
|
<Content Include="dashboard-ui\components\imageuploader\imageuploader.template.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="dashboard-ui\components\medialibraryeditor\medialibraryeditor.js">
|
<Content Include="dashboard-ui\components\medialibrarycreator\medialibrarycreator.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="dashboard-ui\components\medialibraryeditor\medialibraryeditor.template.html">
|
<Content Include="dashboard-ui\components\medialibrarycreator\medialibrarycreator.template.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="dashboard-ui\components\metadataeditor\metadataeditor.js">
|
<Content Include="dashboard-ui\components\metadataeditor\metadataeditor.js">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user