mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Show User Agent in System->Tasks for externally triggered commands (#2261)
This commit is contained in:
parent
9b673c028a
commit
bc6261efb8
6 changed files with 53 additions and 1 deletions
|
@ -4,6 +4,7 @@ using System.Linq;
|
|||
using Lidarr.Http.REST;
|
||||
using Newtonsoft.Json;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Common.Http;
|
||||
using NzbDrone.Core.Messaging.Commands;
|
||||
|
||||
namespace Lidarr.Api.V1.Commands
|
||||
|
@ -23,6 +24,8 @@ namespace Lidarr.Api.V1.Commands
|
|||
public string Exception { get; set; }
|
||||
public CommandTrigger Trigger { get; set; }
|
||||
|
||||
public string ClientUserAgent { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public string CompletionMessage { get; set; }
|
||||
|
||||
|
@ -106,6 +109,8 @@ namespace Lidarr.Api.V1.Commands
|
|||
Exception = model.Exception,
|
||||
Trigger = model.Trigger,
|
||||
|
||||
ClientUserAgent = UserAgentParser.SimplifyUserAgent(model.Body.ClientUserAgent),
|
||||
|
||||
CompletionMessage = model.Body.CompletionMessage,
|
||||
LastExecutionTime = model.Body.LastExecutionTime
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue