New: Save categories to history for grabs

pull/1852/head
Qstick 1 year ago
parent b472a022a6
commit caaf50ed9c

@ -203,6 +203,7 @@ namespace NzbDrone.Core.History
history.Data.Add("Host", message.Host ?? string.Empty); history.Data.Add("Host", message.Host ?? string.Empty);
history.Data.Add("GrabMethod", message.Redirect ? "Redirect" : "Proxy"); history.Data.Add("GrabMethod", message.Redirect ? "Redirect" : "Proxy");
history.Data.Add("GrabTitle", message.Title); history.Data.Add("GrabTitle", message.Title);
history.Data.Add("Categories", string.Join(",", message.Release.Categories.Select(x => x.Id) ?? Array.Empty<int>()));
history.Data.Add("Url", message.Url ?? string.Empty); history.Data.Add("Url", message.Url ?? string.Empty);
_historyRepository.Insert(history); _historyRepository.Insert(history);

Loading…
Cancel
Save