mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
add options to library setup
This commit is contained in:
parent
5989065517
commit
c18b8ec608
2 changed files with 10 additions and 4 deletions
|
@ -44,16 +44,16 @@ namespace MediaBrowser.Controller.Entities
|
||||||
|
|
||||||
public string CollectionType { get; set; }
|
public string CollectionType { get; set; }
|
||||||
|
|
||||||
private readonly Dictionary<string, LibraryOptions> _libraryOptions = new Dictionary<string, LibraryOptions>();
|
private static readonly Dictionary<string, LibraryOptions> LibraryOptions = new Dictionary<string, LibraryOptions>();
|
||||||
public LibraryOptions GetLibraryOptions()
|
public LibraryOptions GetLibraryOptions()
|
||||||
{
|
{
|
||||||
lock (_libraryOptions)
|
lock (LibraryOptions)
|
||||||
{
|
{
|
||||||
LibraryOptions options;
|
LibraryOptions options;
|
||||||
if (!_libraryOptions.TryGetValue(Path, out options))
|
if (!LibraryOptions.TryGetValue(Path, out options))
|
||||||
{
|
{
|
||||||
options = LoadLibraryOptions();
|
options = LoadLibraryOptions();
|
||||||
_libraryOptions[Path] = options;
|
LibraryOptions[Path] = options;
|
||||||
}
|
}
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
|
|
@ -143,6 +143,12 @@
|
||||||
<Content Include="dashboard-ui\components\guestinviter\guestinviter.template.html">
|
<Content Include="dashboard-ui\components\guestinviter\guestinviter.template.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\components\libraryoptionseditor\libraryoptionseditor.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\components\libraryoptionseditor\libraryoptionseditor.template.html">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\components\navdrawer\navdrawer.css">
|
<Content Include="dashboard-ui\components\navdrawer\navdrawer.css">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
Loading…
Reference in a new issue