mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
fixes #254 - Can't turn off custom ImagesByName folder
This commit is contained in:
parent
41fb933e5d
commit
d7cc4738e6
@ -84,9 +84,10 @@ namespace MediaBrowser.Server.Implementations.Configuration
|
|||||||
{
|
{
|
||||||
var newConfig = (ServerConfiguration) newConfiguration;
|
var newConfig = (ServerConfiguration) newConfiguration;
|
||||||
|
|
||||||
var newIbnPath = newConfig.ItemsByNamePath ?? string.Empty;
|
var newIbnPath = newConfig.ItemsByNamePath;
|
||||||
|
|
||||||
if (!string.Equals(Configuration.ItemsByNamePath ?? string.Empty, newIbnPath))
|
if (!string.IsNullOrEmpty(newIbnPath)
|
||||||
|
&& !string.Equals(Configuration.ItemsByNamePath ?? string.Empty, newIbnPath))
|
||||||
{
|
{
|
||||||
// Validate
|
// Validate
|
||||||
if (!Directory.Exists(newIbnPath))
|
if (!Directory.Exists(newIbnPath))
|
||||||
|
Loading…
Reference in New Issue
Block a user