rework settings page

This commit is contained in:
Luke Pulverenti
2015-07-28 15:42:24 -04:00
parent 713a9e779b
commit d95057f13b
9 changed files with 51 additions and 43 deletions

View File

@@ -1,4 +1,5 @@
using MediaBrowser.Common.IO;
using System.ComponentModel;
using MediaBrowser.Common.IO;
using MediaBrowser.Common.ScheduledTasks;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
@@ -338,7 +339,7 @@ namespace MediaBrowser.Server.Implementations.IO
}
catch
{
}
finally
{
@@ -370,6 +371,17 @@ namespace MediaBrowser.Server.Implementations.IO
Logger.ErrorException("Error in Directory watcher for: " + dw.Path, ex);
DisposeWatcher(dw);
if (ex is Win32Exception)
{
Logger.Info("Disabling realtime monitor to prevent future instability");
if (ConfigurationManager.Configuration.EnableLibraryMonitor == AutoOnOff.Auto)
{
ConfigurationManager.Configuration.EnableLibraryMonitor = AutoOnOff.Disabled;
Stop();
}
}
}
/// <summary>

View File

@@ -2071,14 +2071,17 @@ namespace MediaBrowser.Server.Implementations.Library
public List<PersonInfo> GetPeople(BaseItem item)
{
var people = GetPeople(new InternalPeopleQuery
if (item.SupportsPeople)
{
ItemId = item.Id
});
var people = GetPeople(new InternalPeopleQuery
{
ItemId = item.Id
});
if (people.Count > 0)
{
return people;
if (people.Count > 0)
{
return people;
}
}
return item.People ?? new List<PersonInfo>();

View File

@@ -173,7 +173,5 @@
"HeaderProducer": "Producers",
"HeaderWriter": "Writers",
"HeaderParentalRatings": "Parental Ratings",
"HeaderCommunityRatings": "Community ratings",
"HeaderCommunityRatings": "Community ratings"
}