diff --git a/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs b/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs index e94130c0d..6a29006ac 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs @@ -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)