mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update config pages
This commit is contained in:
parent
865524da65
commit
e04582c9d2
@ -114,7 +114,7 @@ namespace MediaBrowser.Dlna.PlayTo
|
|||||||
{
|
{
|
||||||
Url = url,
|
Url = url,
|
||||||
UserAgent = USERAGENT,
|
UserAgent = USERAGENT,
|
||||||
LogRequest = logRequest || _config.GetDlnaConfiguration().EnableDebugLogging,
|
LogRequest = logRequest || _config.GetDlnaConfiguration().EnableDebugLog,
|
||||||
LogErrorResponseBody = true
|
LogErrorResponseBody = true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ namespace MediaBrowser.Dlna.Service
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var enableDebugLogging = Config.GetDlnaConfiguration().EnableDebugLogging;
|
var enableDebugLogging = Config.GetDlnaConfiguration().EnableDebugLog;
|
||||||
|
|
||||||
if (enableDebugLogging)
|
if (enableDebugLogging)
|
||||||
{
|
{
|
||||||
|
@ -217,7 +217,7 @@ namespace MediaBrowser.Dlna.Ssdp
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_config.GetDlnaConfiguration().EnableDebugLogging)
|
if (_config.GetDlnaConfiguration().EnableDebugLog)
|
||||||
{
|
{
|
||||||
var headerTexts = args.Headers.Select(i => string.Format("{0}={1}", i.Key, i.Value));
|
var headerTexts = args.Headers.Select(i => string.Format("{0}={1}", i.Key, i.Value));
|
||||||
var headerText = string.Join(",", headerTexts.ToArray());
|
var headerText = string.Join(",", headerTexts.ToArray());
|
||||||
|
@ -92,7 +92,7 @@ namespace MediaBrowser.Dlna.Ssdp
|
|||||||
{
|
{
|
||||||
TimeSpan delay = GetSearchDelay(headers);
|
TimeSpan delay = GetSearchDelay(headers);
|
||||||
|
|
||||||
if (_config.GetDlnaConfiguration().EnableDebugLogging)
|
if (_config.GetDlnaConfiguration().EnableDebugLog)
|
||||||
{
|
{
|
||||||
_logger.Debug("Delaying search response by {0} seconds", delay.TotalSeconds);
|
_logger.Debug("Delaying search response by {0} seconds", delay.TotalSeconds);
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ namespace MediaBrowser.Dlna.Ssdp
|
|||||||
{
|
{
|
||||||
var msg = new SsdpMessageBuilder().BuildMessage(header, values);
|
var msg = new SsdpMessageBuilder().BuildMessage(header, values);
|
||||||
|
|
||||||
var enableDebugLogging = _config.GetDlnaConfiguration().EnableDebugLogging;
|
var enableDebugLogging = _config.GetDlnaConfiguration().EnableDebugLog;
|
||||||
|
|
||||||
for (var i = 0; i < sendCount; i++)
|
for (var i = 0; i < sendCount; i++)
|
||||||
{
|
{
|
||||||
@ -202,7 +202,7 @@ namespace MediaBrowser.Dlna.Ssdp
|
|||||||
|
|
||||||
private void RespondToSearch(EndPoint endpoint, string deviceType)
|
private void RespondToSearch(EndPoint endpoint, string deviceType)
|
||||||
{
|
{
|
||||||
var enableDebugLogging = _config.GetDlnaConfiguration().EnableDebugLogging;
|
var enableDebugLogging = _config.GetDlnaConfiguration().EnableDebugLog;
|
||||||
|
|
||||||
var isLogged = false;
|
var isLogged = false;
|
||||||
|
|
||||||
@ -305,7 +305,7 @@ namespace MediaBrowser.Dlna.Ssdp
|
|||||||
|
|
||||||
var received = (byte[])result.AsyncState;
|
var received = (byte[])result.AsyncState;
|
||||||
|
|
||||||
var enableDebugLogging = _config.GetDlnaConfiguration().EnableDebugLogging;
|
var enableDebugLogging = _config.GetDlnaConfiguration().EnableDebugLog;
|
||||||
|
|
||||||
if (enableDebugLogging)
|
if (enableDebugLogging)
|
||||||
{
|
{
|
||||||
@ -404,7 +404,7 @@ namespace MediaBrowser.Dlna.Ssdp
|
|||||||
|
|
||||||
private void NotifyAll()
|
private void NotifyAll()
|
||||||
{
|
{
|
||||||
var enableDebugLogging = _config.GetDlnaConfiguration().EnableDebugLogging;
|
var enableDebugLogging = _config.GetDlnaConfiguration().EnableDebugLog;
|
||||||
|
|
||||||
if (enableDebugLogging)
|
if (enableDebugLogging)
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,7 @@ namespace MediaBrowser.Model.Configuration
|
|||||||
{
|
{
|
||||||
public bool EnablePlayTo { get; set; }
|
public bool EnablePlayTo { get; set; }
|
||||||
public bool EnableServer { get; set; }
|
public bool EnableServer { get; set; }
|
||||||
public bool EnableDebugLogging { get; set; }
|
public bool EnableDebugLog { get; set; }
|
||||||
public bool BlastAliveMessages { get; set; }
|
public bool BlastAliveMessages { get; set; }
|
||||||
public int ClientDiscoveryIntervalSeconds { get; set; }
|
public int ClientDiscoveryIntervalSeconds { get; set; }
|
||||||
public int BlastAliveMessageIntervalSeconds { get; set; }
|
public int BlastAliveMessageIntervalSeconds { get; set; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user