Parse and Store App from UA for Nab Requests Stats

This commit is contained in:
Qstick
2020-12-29 23:06:41 -05:00
parent c6ec632dd2
commit 8f0c872873
6 changed files with 27 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ namespace NzbDrone.Core.History
history.Data.Add("ElapsedTime", message.Time.ToString());
history.Data.Add("Query", message.Query.SearchTerm ?? string.Empty);
history.Data.Add("Categories", string.Join(",", message.Query.Categories) ?? string.Empty);
history.Data.Add("Source", message.Query.Source ?? string.Empty);
history.Data.Add("Successful", message.Successful.ToString());
history.Data.Add("QueryResults", message.Results.HasValue ? message.Results.ToString() : null);