mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
fixed config save
This commit is contained in:
parent
8217bafb24
commit
98e8b73d81
1 changed files with 4 additions and 2 deletions
|
@ -84,10 +84,12 @@ namespace MediaBrowser.Server.Implementations.Configuration
|
||||||
{
|
{
|
||||||
var newConfig = (ServerConfiguration) newConfiguration;
|
var newConfig = (ServerConfiguration) newConfiguration;
|
||||||
|
|
||||||
if (!string.Equals(Configuration.ItemsByNamePath, newConfig.ItemsByNamePath))
|
var newIbnPath = newConfig.ItemsByNamePath ?? string.Empty;
|
||||||
|
|
||||||
|
if (!string.Equals(Configuration.ItemsByNamePath ?? string.Empty, newIbnPath))
|
||||||
{
|
{
|
||||||
// Validate
|
// Validate
|
||||||
if (!Directory.Exists(newConfig.ItemsByNamePath))
|
if (!Directory.Exists(newIbnPath))
|
||||||
{
|
{
|
||||||
throw new DirectoryNotFoundException(string.Format("{0} does not exist.", newConfig.ItemsByNamePath));
|
throw new DirectoryNotFoundException(string.Format("{0} does not exist.", newConfig.ItemsByNamePath));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue