mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-13 13:46:24 +00:00
rework settings page
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>();
|
||||
|
||||
@@ -173,7 +173,5 @@
|
||||
"HeaderProducer": "Producers",
|
||||
"HeaderWriter": "Writers",
|
||||
"HeaderParentalRatings": "Parental Ratings",
|
||||
"HeaderCommunityRatings": "Community ratings",
|
||||
|
||||
|
||||
"HeaderCommunityRatings": "Community ratings"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user