core: fix cookie login message (#8375)

Before this change the message was:
Your cookie did not work: Your cookie did not work
Now:
Your cookie did not work: Found 0 results in the tracker
This commit is contained in:
Diego Heras 2020-04-26 20:18:40 +02:00 committed by GitHub
parent d9b19719e4
commit 9fa9494d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 11 deletions

View File

@ -110,7 +110,7 @@ namespace Jackett.Common.Indexers.Abstract
var results = await PerformQuery(new TorznabQuery());
if (!results.Any())
{
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
}
IsConfigured = true;

View File

@ -93,7 +93,7 @@ namespace Jackett.Common.Indexers
{
var results = await PerformQuery(new TorznabQuery());
if (!results.Any())
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
IsConfigured = true;
SaveConfig();
return IndexerConfigurationStatus.Completed;

View File

@ -132,7 +132,7 @@ namespace Jackett.Common.Indexers
var results = await PerformQuery(new TorznabQuery());
if (!results.Any())
{
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
}
IsConfigured = true;

View File

@ -138,7 +138,7 @@ namespace Jackett.Common.Indexers
{
var results = await PerformQuery(new TorznabQuery());
if (!results.Any())
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
IsConfigured = true;
SaveConfig();
return IndexerConfigurationStatus.Completed;

View File

@ -184,7 +184,7 @@ namespace Jackett.Common.Indexers
var results = await PerformQuery(new TorznabQuery());
if (results.Count() == 0)
{
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
}
IsConfigured = true;

View File

@ -145,7 +145,7 @@ namespace Jackett.Common.Indexers
{
var results = await PerformQuery(new TorznabQuery());
if (!results.Any())
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
IsConfigured = true;
SaveConfig();

View File

@ -71,7 +71,7 @@ namespace Jackett.Common.Indexers
var results = await PerformQuery(new TorznabQuery());
if (results.Count() == 0)
{
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
}
IsConfigured = true;

View File

@ -82,7 +82,7 @@ namespace Jackett.Common.Indexers
var results = await PerformQuery(new TorznabQuery());
if (results.Count() == 0)
{
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
}
IsConfigured = true;

View File

@ -154,7 +154,7 @@ namespace Jackett.Common.Indexers
{
var results = await PerformQuery(new TorznabQuery());
if (!results.Any())
throw new Exception("no results found, please report this bug");
throw new Exception("Found 0 results in the tracker");
IsConfigured = true;
SaveConfig();

View File

@ -141,7 +141,7 @@ namespace Jackett.Common.Indexers
{
var results = await PerformQuery(new TorznabQuery());
if (!results.Any())
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
IsConfigured = true;
SaveConfig();

View File

@ -94,7 +94,7 @@ namespace Jackett.Common.Indexers
var results = await PerformQuery(new TorznabQuery());
if (results.Count() == 0)
{
throw new Exception("Your cookie did not work");
throw new Exception("Found 0 results in the tracker");
}
IsConfigured = true;