mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 12:44:19 +01:00
rework upnp discovery
This commit is contained in:
@@ -164,32 +164,16 @@ namespace MediaBrowser.Server.Implementations.IO
|
||||
Start();
|
||||
}
|
||||
|
||||
private bool EnableLibraryMonitor
|
||||
{
|
||||
get
|
||||
{
|
||||
switch (ConfigurationManager.Configuration.EnableLibraryMonitor)
|
||||
{
|
||||
case AutoOnOff.Auto:
|
||||
return Environment.OSVersion.Platform == PlatformID.Win32NT;
|
||||
case AutoOnOff.Enabled:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsLibraryMonitorEnabaled(BaseItem item)
|
||||
{
|
||||
var options = LibraryManager.GetLibraryOptions(item);
|
||||
|
||||
if (options != null && options.SchemaVersion >= 1)
|
||||
if (options != null)
|
||||
{
|
||||
return options.EnableRealtimeMonitor;
|
||||
}
|
||||
|
||||
return EnableLibraryMonitor;
|
||||
return false;
|
||||
}
|
||||
|
||||
public void Start()
|
||||
|
||||
Reference in New Issue
Block a user