mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-29 20:08:27 +01:00
Move all settings into the main server configuration
Decreased the timeout from 30 minutes to 5. Public lookup values have been replaced with the short code.
This commit is contained in:
@@ -76,6 +76,11 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// <value><c>true</c> if this instance is port authorized; otherwise, <c>false</c>.</value>
|
||||
public bool IsPortAuthorized { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets if quick connect is available for use on this server.
|
||||
/// </summary>
|
||||
public bool QuickConnectAvailable { get; set; }
|
||||
|
||||
public bool AutoRunWebApp { get; set; }
|
||||
|
||||
public bool EnableRemoteAccess { get; set; }
|
||||
@@ -281,6 +286,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
AutoRunWebApp = true;
|
||||
EnableRemoteAccess = true;
|
||||
QuickConnectAvailable = false;
|
||||
|
||||
EnableUPnP = false;
|
||||
MinResumePct = 5;
|
||||
|
||||
@@ -17,11 +17,6 @@ namespace MediaBrowser.Model.QuickConnect
|
||||
/// </summary>
|
||||
public string? Secret { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the public value used to uniquely identify this request. Can only be used to authorize the request.
|
||||
/// </summary>
|
||||
public string? Lookup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user facing code used so the user can quickly differentiate this request from others.
|
||||
/// </summary>
|
||||
|
||||
@@ -17,25 +17,15 @@ namespace MediaBrowser.Model.QuickConnect
|
||||
/// </summary>
|
||||
public string? Code { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the public value used to uniquely identify this request. Can only be used to authorize the request.
|
||||
/// </summary>
|
||||
public string? Lookup { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the device friendly name.
|
||||
/// </summary>
|
||||
public string? FriendlyName { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the DateTime that this request was created.
|
||||
/// </summary>
|
||||
public DateTime? DateAdded { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Cast an internal quick connect result to a DTO by removing all sensitive properties.
|
||||
/// </summary>
|
||||
/// <param name="result">QuickConnectResult object to cast</param>
|
||||
/// <param name="result">QuickConnectResult object to cast.</param>
|
||||
public static implicit operator QuickConnectResultDto(QuickConnectResult result)
|
||||
{
|
||||
QuickConnectResultDto resultDto = new QuickConnectResultDto
|
||||
@@ -43,8 +33,6 @@ namespace MediaBrowser.Model.QuickConnect
|
||||
Authenticated = result.Authenticated,
|
||||
Code = result.Code,
|
||||
FriendlyName = result.FriendlyName,
|
||||
DateAdded = result.DateAdded,
|
||||
Lookup = result.Lookup
|
||||
};
|
||||
|
||||
return resultDto;
|
||||
|
||||
Reference in New Issue
Block a user