Iptorrents tv episode search fix (#374)

* adjust search term for individual season in ipt
pull/387/head
crusher 3 years ago committed by Qstick
parent 924db7a394
commit ddc676c608

@ -174,11 +174,15 @@ namespace NzbDrone.Core.Indexers.Definitions
if (imdbId.IsNotNullOrWhiteSpace())
{
qc.Add("q", imdbId);
// ipt uses sphinx, which supports boolean operators and grouping
qc.Add("q", "+(" + imdbId + ")");
}
else if (!string.IsNullOrWhiteSpace(term))
// changed from else if to if to support searching imdbid + season/episode in the same query
if (!string.IsNullOrWhiteSpace(term))
{
qc.Add("q", term);
// similar to above
qc.Add("q", "+(" + term + ")");
}
if (Settings.FreeLeechOnly)

Loading…
Cancel
Save