revert settings to their old names
This commit is contained in:
parent
b1f9b03b17
commit
37eed8cf1f
|
@ -1447,7 +1447,7 @@ namespace Emby.Server.Implementations
|
||||||
CanSelfRestart = CanSelfRestart,
|
CanSelfRestart = CanSelfRestart,
|
||||||
CanLaunchWebBrowser = CanLaunchWebBrowser,
|
CanLaunchWebBrowser = CanLaunchWebBrowser,
|
||||||
HasUpdateAvailable = HasUpdateAvailable,
|
HasUpdateAvailable = HasUpdateAvailable,
|
||||||
TranscodePath = ApplicationPaths.TranscodePath,
|
TranscodingTempPath = ApplicationPaths.TranscodePath,
|
||||||
ServerName = FriendlyName,
|
ServerName = FriendlyName,
|
||||||
LocalAddress = localAddress,
|
LocalAddress = localAddress,
|
||||||
SupportsLibraryMonitor = true,
|
SupportsLibraryMonitor = true,
|
||||||
|
|
|
@ -91,9 +91,9 @@ namespace Emby.Server.Implementations.Configuration
|
||||||
{
|
{
|
||||||
var encodingConfig = this.GetConfiguration<EncodingOptions>("encoding");
|
var encodingConfig = this.GetConfiguration<EncodingOptions>("encoding");
|
||||||
|
|
||||||
((ServerApplicationPaths)ApplicationPaths).TranscodePath = string.IsNullOrEmpty(encodingConfig.TranscodePath) ?
|
((ServerApplicationPaths)ApplicationPaths).TranscodePath = string.IsNullOrEmpty(encodingConfig.TranscodingTempPath) ?
|
||||||
null :
|
null :
|
||||||
Path.Combine(encodingConfig.TranscodePath, "transcodes");
|
Path.Combine(encodingConfig.TranscodingTempPath, "transcodes");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnNamedConfigurationUpdated(string key, object configuration)
|
protected override void OnNamedConfigurationUpdated(string key, object configuration)
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||||
public class LibraryChangedNotifier : IServerEntryPoint
|
public class LibraryChangedNotifier : IServerEntryPoint
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _library manager
|
/// The library manager.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly ILibraryManager _libraryManager;
|
private readonly ILibraryManager _libraryManager;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||||
private readonly ILogger _logger;
|
private readonly ILogger _logger;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _library changed sync lock
|
/// The library changed sync lock.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly object _libraryChangedSyncLock = new object();
|
private readonly object _libraryChangedSyncLock = new object();
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||||
private Timer LibraryUpdateTimer { get; set; }
|
private Timer LibraryUpdateTimer { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The library update duration
|
/// The library update duration.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const int LibraryUpdateDuration = 30000;
|
private const int LibraryUpdateDuration = 30000;
|
||||||
|
|
||||||
|
@ -188,8 +188,11 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||||
{
|
{
|
||||||
if (LibraryUpdateTimer == null)
|
if (LibraryUpdateTimer == null)
|
||||||
{
|
{
|
||||||
LibraryUpdateTimer = new Timer(LibraryUpdateTimerCallback, null, LibraryUpdateDuration,
|
LibraryUpdateTimer = new Timer(
|
||||||
Timeout.Infinite);
|
LibraryUpdateTimerCallback,
|
||||||
|
null,
|
||||||
|
LibraryUpdateDuration,
|
||||||
|
Timeout.Infinite);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,10 +40,10 @@ namespace MediaBrowser.MediaEncoding.Configuration
|
||||||
var oldEncodingConfig = (EncodingOptions)oldConfig;
|
var oldEncodingConfig = (EncodingOptions)oldConfig;
|
||||||
var newEncodingConfig = (EncodingOptions)newConfig;
|
var newEncodingConfig = (EncodingOptions)newConfig;
|
||||||
|
|
||||||
var newPath = newEncodingConfig.TranscodePath;
|
var newPath = newEncodingConfig.TranscodingTempPath;
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(newPath)
|
if (!string.IsNullOrWhiteSpace(newPath)
|
||||||
&& !string.Equals(oldEncodingConfig.TranscodePath ?? string.Empty, newPath))
|
&& !string.Equals(oldEncodingConfig.TranscodingTempPath ?? string.Empty, newPath))
|
||||||
{
|
{
|
||||||
// Validate
|
// Validate
|
||||||
if (!Directory.Exists(newPath))
|
if (!Directory.Exists(newPath))
|
||||||
|
|
|
@ -3,7 +3,7 @@ namespace MediaBrowser.Model.Configuration
|
||||||
public class EncodingOptions
|
public class EncodingOptions
|
||||||
{
|
{
|
||||||
public int EncodingThreadCount { get; set; }
|
public int EncodingThreadCount { get; set; }
|
||||||
public string TranscodePath { get; set; }
|
public string TranscodingTempPath { get; set; }
|
||||||
public double DownMixAudioBoost { get; set; }
|
public double DownMixAudioBoost { get; set; }
|
||||||
public bool EnableThrottling { get; set; }
|
public bool EnableThrottling { get; set; }
|
||||||
public int ThrottleDelaySeconds { get; set; }
|
public int ThrottleDelaySeconds { get; set; }
|
||||||
|
|
|
@ -110,10 +110,10 @@ namespace MediaBrowser.Model.System
|
||||||
public string InternalMetadataPath { get; set; }
|
public string InternalMetadataPath { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the transcoding temporary path.
|
/// Gets or sets the transcode path.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The transcoding temporary path.</value>
|
/// <value>The transcode path.</value>
|
||||||
public string TranscodePath { get; set; }
|
public string TranscodingTempPath { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the HTTP server port number.
|
/// Gets or sets the HTTP server port number.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user