mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
cleaned up episode search
This commit is contained in:
parent
02d842a2b2
commit
ef5f565a4d
75 changed files with 266 additions and 783 deletions
22
NzbDrone.Core/DecisionEngine/DownloadDecision.cs
Normal file
22
NzbDrone.Core/DecisionEngine/DownloadDecision.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace NzbDrone.Core.DecisionEngine
|
||||
{
|
||||
public class DownloadDecision
|
||||
{
|
||||
public IEnumerable<string> Rejections { get; private set; }
|
||||
public bool Approved
|
||||
{
|
||||
get
|
||||
{
|
||||
return !Rejections.Any();
|
||||
}
|
||||
}
|
||||
|
||||
public DownloadDecision(params string[] rejections)
|
||||
{
|
||||
Rejections = rejections.ToList();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue