mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
gazelletracker: ignore artist name searching if VA
(#14125)
This commit is contained in:
@@ -8,6 +8,7 @@ using System.Net;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using AngleSharp.Html.Parser;
|
using AngleSharp.Html.Parser;
|
||||||
|
using Jackett.Common.Extensions;
|
||||||
using Jackett.Common.Models;
|
using Jackett.Common.Models;
|
||||||
using Jackett.Common.Models.IndexerConfig.Bespoke;
|
using Jackett.Common.Models.IndexerConfig.Bespoke;
|
||||||
using Jackett.Common.Services.Interfaces;
|
using Jackett.Common.Services.Interfaces;
|
||||||
@@ -187,16 +188,16 @@ namespace Jackett.Common.Indexers.Abstract
|
|||||||
else if (!string.IsNullOrWhiteSpace(searchString))
|
else if (!string.IsNullOrWhiteSpace(searchString))
|
||||||
queryCollection.Add("searchstr", searchString);
|
queryCollection.Add("searchstr", searchString);
|
||||||
|
|
||||||
if (query.Artist != null)
|
if (query.Artist.IsNotNullOrWhiteSpace() && query.Artist != "VA")
|
||||||
queryCollection.Add("artistname", query.Artist);
|
queryCollection.Add("artistname", query.Artist);
|
||||||
|
|
||||||
if (query.Label != null)
|
if (query.Label.IsNotNullOrWhiteSpace())
|
||||||
queryCollection.Add("recordlabel", query.Label);
|
queryCollection.Add("recordlabel", query.Label);
|
||||||
|
|
||||||
if (query.Year != null)
|
if (query.Year.HasValue)
|
||||||
queryCollection.Add("year", query.Year.ToString());
|
queryCollection.Add("year", query.Year.ToString());
|
||||||
|
|
||||||
if (query.Album != null)
|
if (query.Album.IsNotNullOrWhiteSpace())
|
||||||
queryCollection.Add("groupname", query.Album);
|
queryCollection.Add("groupname", query.Album);
|
||||||
|
|
||||||
foreach (var cat in MapTorznabCapsToTrackers(query))
|
foreach (var cat in MapTorznabCapsToTrackers(query))
|
||||||
|
Reference in New Issue
Block a user