|
|
|
@ -78,9 +78,11 @@ namespace NzbDrone.Core.Indexers.TorrentPotato
|
|
|
|
|
.Accept(HttpAccept.Json);
|
|
|
|
|
|
|
|
|
|
requestBuilder.AddQueryParam("passkey", Settings.Passkey);
|
|
|
|
|
requestBuilder.AddQueryParam("user", Settings.User);
|
|
|
|
|
// requestBuilder.AddQueryParam("imdbid", "tt0076759"); //For now just search for Star Wars.
|
|
|
|
|
requestBuilder.AddQueryParam("search", "the"); // there has to be movies with 'the' in the title on any indexer
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(Settings.User))
|
|
|
|
|
{
|
|
|
|
|
requestBuilder.AddQueryParam("user", Settings.User);
|
|
|
|
|
}
|
|
|
|
|
requestBuilder.AddQueryParam("search", "the");
|
|
|
|
|
|
|
|
|
|
yield return new IndexerRequest(requestBuilder.Build());
|
|
|
|
|
}
|
|
|
|
@ -91,7 +93,11 @@ namespace NzbDrone.Core.Indexers.TorrentPotato
|
|
|
|
|
.Accept(HttpAccept.Json);
|
|
|
|
|
|
|
|
|
|
requestBuilder.AddQueryParam("passkey", Settings.Passkey);
|
|
|
|
|
requestBuilder.AddQueryParam("user", Settings.User);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(Settings.User))
|
|
|
|
|
{
|
|
|
|
|
requestBuilder.AddQueryParam("user", Settings.User);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (searchCriteria.Movie.ImdbId.IsNotNullOrWhiteSpace())
|
|
|
|
|
{
|
|
|
|
|