add back MergeMetadataAndImagesByName
This commit is contained in:
parent
eb1ab74759
commit
95ae1c5f7b
|
@ -68,6 +68,7 @@ namespace MediaBrowser.Api
|
||||||
_config.Configuration.EnableLocalizedGuids = true;
|
_config.Configuration.EnableLocalizedGuids = true;
|
||||||
_config.Configuration.EnableCustomPathSubFolders = true;
|
_config.Configuration.EnableCustomPathSubFolders = true;
|
||||||
_config.Configuration.EnableDateLastRefresh = true;
|
_config.Configuration.EnableDateLastRefresh = true;
|
||||||
|
_config.Configuration.MergeMetadataAndImagesByName = true;
|
||||||
_config.SaveConfiguration();
|
_config.SaveConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,6 +162,8 @@ namespace MediaBrowser.Model.Configuration
|
||||||
/// <value>The dashboard source path.</value>
|
/// <value>The dashboard source path.</value>
|
||||||
public string DashboardSourcePath { get; set; }
|
public string DashboardSourcePath { get; set; }
|
||||||
|
|
||||||
|
public bool MergeMetadataAndImagesByName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the image saving convention.
|
/// Gets or sets the image saving convention.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -211,6 +213,7 @@ namespace MediaBrowser.Model.Configuration
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ServerConfiguration()
|
public ServerConfiguration()
|
||||||
{
|
{
|
||||||
|
MergeMetadataAndImagesByName = true;
|
||||||
Migrations = new string[] { };
|
Migrations = new string[] { };
|
||||||
|
|
||||||
ImageSavingConvention = ImageSavingConvention.Compatible;
|
ImageSavingConvention = ImageSavingConvention.Compatible;
|
||||||
|
|
|
@ -35,6 +35,7 @@ namespace MediaBrowser.Server.Implementations.Configuration
|
||||||
public ServerConfigurationManager(IApplicationPaths applicationPaths, ILogManager logManager, IXmlSerializer xmlSerializer, IFileSystem fileSystem)
|
public ServerConfigurationManager(IApplicationPaths applicationPaths, ILogManager logManager, IXmlSerializer xmlSerializer, IFileSystem fileSystem)
|
||||||
: base(applicationPaths, logManager, xmlSerializer, fileSystem)
|
: base(applicationPaths, logManager, xmlSerializer, fileSystem)
|
||||||
{
|
{
|
||||||
|
UpdateItemsByNamePath();
|
||||||
UpdateMetadataPath();
|
UpdateMetadataPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,6 +73,7 @@ namespace MediaBrowser.Server.Implementations.Configuration
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void OnConfigurationUpdated()
|
protected override void OnConfigurationUpdated()
|
||||||
{
|
{
|
||||||
|
UpdateItemsByNamePath();
|
||||||
UpdateMetadataPath();
|
UpdateMetadataPath();
|
||||||
|
|
||||||
base.OnConfigurationUpdated();
|
base.OnConfigurationUpdated();
|
||||||
|
@ -84,6 +86,19 @@ namespace MediaBrowser.Server.Implementations.Configuration
|
||||||
UpdateTranscodingTempPath();
|
UpdateTranscodingTempPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Updates the items by name path.
|
||||||
|
/// </summary>
|
||||||
|
private void UpdateItemsByNamePath()
|
||||||
|
{
|
||||||
|
if (!Configuration.MergeMetadataAndImagesByName)
|
||||||
|
{
|
||||||
|
((ServerApplicationPaths)ApplicationPaths).ItemsByNamePath = string.IsNullOrEmpty(Configuration.ItemsByNamePath) ?
|
||||||
|
null :
|
||||||
|
Configuration.ItemsByNamePath;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Updates the metadata path.
|
/// Updates the metadata path.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user