mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-18 08:06:35 +00:00
post release housecleaning
This commit is contained in:
@@ -200,7 +200,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
public PeopleMetadataOptions PeopleMetadataOptions { get; set; }
|
||||
public bool FindInternetTrailers { get; set; }
|
||||
|
||||
public string[] InsecureApps8 { get; set; }
|
||||
public string[] InsecureApps9 { get; set; }
|
||||
|
||||
public bool SaveMetadataHidden { get; set; }
|
||||
|
||||
@@ -257,7 +257,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
PeopleMetadataOptions = new PeopleMetadataOptions();
|
||||
|
||||
InsecureApps8 = new[]
|
||||
InsecureApps9 = new[]
|
||||
{
|
||||
"Chromecast",
|
||||
"iOS",
|
||||
@@ -266,7 +266,6 @@ namespace MediaBrowser.Model.Configuration
|
||||
"Media Portal",
|
||||
"iPad",
|
||||
"iPhone",
|
||||
"Roku",
|
||||
"Windows Phone"
|
||||
};
|
||||
|
||||
|
||||
@@ -6,12 +6,6 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// </summary>
|
||||
public class UserConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is administrator.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance is administrator; otherwise, <c>false</c>.</value>
|
||||
public bool IsAdministrator { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the audio language preference.
|
||||
/// </summary>
|
||||
@@ -53,7 +47,6 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public string[] LatestItemsExcludes { get; set; }
|
||||
|
||||
public bool HasMigratedToPolicy { get; set; }
|
||||
public bool HidePlayedInLatest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -217,6 +217,11 @@ namespace MediaBrowser.Model.Dlna
|
||||
return list;
|
||||
}
|
||||
|
||||
public List<SubtitleStreamInfo> GetExternalSubtitles(bool includeSelectedTrackOnly, string baseUrl, string accessToken)
|
||||
{
|
||||
return GetExternalSubtitles(includeSelectedTrackOnly, false, baseUrl, accessToken);
|
||||
}
|
||||
|
||||
public List<SubtitleStreamInfo> GetExternalSubtitles(bool includeSelectedTrackOnly, bool enableAllProfiles, string baseUrl, string accessToken)
|
||||
{
|
||||
List<SubtitleStreamInfo> list = GetSubtitleProfiles(includeSelectedTrackOnly, enableAllProfiles, baseUrl, accessToken);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using MediaBrowser.Model.Configuration;
|
||||
using MediaBrowser.Model.Extensions;
|
||||
using MediaBrowser.Model.Users;
|
||||
|
||||
namespace MediaBrowser.Model.Notifications
|
||||
{
|
||||
@@ -106,7 +107,7 @@ namespace MediaBrowser.Model.Notifications
|
||||
!ListHelper.ContainsIgnoreCase(opt.DisabledMonitorUsers, userId);
|
||||
}
|
||||
|
||||
public bool IsEnabledToSendToUser(string type, string userId, UserConfiguration userConfig)
|
||||
public bool IsEnabledToSendToUser(string type, string userId, UserPolicy userPolicy)
|
||||
{
|
||||
NotificationOption opt = GetOptions(type);
|
||||
|
||||
@@ -117,7 +118,7 @@ namespace MediaBrowser.Model.Notifications
|
||||
return true;
|
||||
}
|
||||
|
||||
if (opt.SendToUserMode == SendToUserType.Admins && userConfig.IsAdministrator)
|
||||
if (opt.SendToUserMode == SendToUserType.Admins && userPolicy.IsAdministrator)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -32,8 +32,6 @@ namespace MediaBrowser.Model.Users
|
||||
public bool EnableUserPreferenceAccess { get; set; }
|
||||
public AccessSchedule[] AccessSchedules { get; set; }
|
||||
public UnratedItem[] BlockUnratedItems { get; set; }
|
||||
public string[] BlockedMediaFolders { get; set; }
|
||||
public string[] BlockedChannels { get; set; }
|
||||
public bool EnableRemoteControlOfOtherUsers { get; set; }
|
||||
public bool EnableSharedDeviceControl { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user