mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
Fixed: Failed history items now get removed from Nzbget if configured.
This commit is contained in:
parent
9cf8436dbc
commit
063b9a1778
@ -85,7 +85,7 @@ public VersionResponse GetVersion(NzbgetSettings settings)
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user