improve IsIdSearch

This commit is contained in:
Bogdan 2023-11-07 21:32:03 +02:00
parent 2fa617b97d
commit 382e659a7f
1 changed files with 10 additions and 1 deletions

View File

@ -90,7 +90,16 @@ namespace Jackett.Common.Models
IsTraktQuery || IsTraktQuery ||
IsTvmazeQuery || IsTvmazeQuery ||
IsTmdbQuery || IsTmdbQuery ||
IsDoubanQuery; IsDoubanQuery ||
Album.IsNotNullOrWhiteSpace() ||
Artist.IsNotNullOrWhiteSpace() ||
Label.IsNotNullOrWhiteSpace() ||
Genre.IsNotNullOrWhiteSpace() ||
Track.IsNotNullOrWhiteSpace() ||
Author.IsNotNullOrWhiteSpace() ||
Title.IsNotNullOrWhiteSpace() ||
Publisher.IsNotNullOrWhiteSpace() ||
Year.HasValue;
public bool HasSpecifiedCategories => (Categories != null && Categories.Length > 0); public bool HasSpecifiedCategories => (Categories != null && Categories.Length > 0);