mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
ee6467073f
v7
27 lines
688 B
C#
27 lines
688 B
C#
using NzbDrone.Common.Extensions;
|
|
|
|
namespace NzbDrone.Core.IndexerSearch.Definitions
|
|
{
|
|
public class BookSearchCriteria : SearchCriteriaBase
|
|
{
|
|
public string Author { get; set; }
|
|
public string Title { get; set; }
|
|
public string Publisher { get; set; }
|
|
public int? Year { get; set; }
|
|
public string Genre { get; set; }
|
|
|
|
public override bool RssSearch
|
|
{
|
|
get
|
|
{
|
|
if (SearchTerm.IsNullOrWhiteSpace() && Author.IsNullOrWhiteSpace() && Title.IsNullOrWhiteSpace())
|
|
{
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|