Fixed: Failed history items now get removed from Nzbget if configured.

This commit is contained in:
Taloth Saldono 2014-05-11 12:26:32 +02:00
parent 9cf8436dbc
commit 063b9a1778
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
public void RemoveFromHistory(string id, NzbgetSettings settings)
{
var history = GetHistory(settings);
var item = history.SingleOrDefault(h => h.Parameters.SingleOrDefault(p => p.Name == "drone") != null);
var item = history.SingleOrDefault(h => h.Parameters.Any(p => p.Name == "drone" && id == (p.Value as string)));
if (item == null)
{