mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
Fix: Indexers that are enabled but aren't configured correctly will be skipped during rss/search
This commit is contained in:
@@ -23,7 +23,7 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
[Test]
|
||||
public void Init_indexer_test()
|
||||
{
|
||||
|
||||
|
||||
|
||||
Mocker.SetConstant(TestDbHelper.GetEmptyDatabase());
|
||||
|
||||
@@ -45,8 +45,6 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
[Test]
|
||||
public void Init_indexer_with_disabled_job()
|
||||
{
|
||||
|
||||
|
||||
Mocker.SetConstant(TestDbHelper.GetEmptyDatabase());
|
||||
|
||||
//Act
|
||||
@@ -75,6 +73,11 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
get { return new[] { "www.google.com" }; }
|
||||
}
|
||||
|
||||
public override bool IsConfigured
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
protected override NetworkCredential Credentials
|
||||
{
|
||||
get { return null; }
|
||||
@@ -129,6 +132,11 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
get { return new[] { "http://rss.nzbmatrix.com/rss.php?cat=TV" }; }
|
||||
}
|
||||
|
||||
public override bool IsConfigured
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
protected override IList<string> GetEpisodeSearchUrls(string seriesTitle, int seasonNumber, int episodeNumber)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
@@ -172,6 +180,11 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
get { return new[] { "http://www.google.com" }; }
|
||||
}
|
||||
|
||||
public override bool IsConfigured
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
protected override IList<string> GetEpisodeSearchUrls(string seriesTitle, int seasonNumber, int episodeNumber)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
@@ -205,4 +218,52 @@ namespace NzbDrone.Core.Test.ProviderTests
|
||||
}
|
||||
}
|
||||
|
||||
public class NotConfiguredIndexer : IndexerBase
|
||||
{
|
||||
public NotConfiguredIndexer(HttpProvider httpProvider, ConfigProvider configProvider)
|
||||
: base(httpProvider, configProvider)
|
||||
{
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return "NotConfiguredIndexer"; }
|
||||
}
|
||||
|
||||
protected override string[] Urls
|
||||
{
|
||||
get { return new[] { "http://rss.nzbmatrix.com/rss.php?cat=TV" }; }
|
||||
}
|
||||
|
||||
public override bool IsConfigured
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
protected override IList<string> GetEpisodeSearchUrls(string seriesTitle, int seasonNumber, int episodeNumber)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
protected override IList<string> GetDailyEpisodeSearchUrls(string seriesTitle, DateTime date)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
protected override IList<string> GetSeasonSearchUrls(string seriesTitle, int seasonNumber)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
protected override IList<string> GetPartialSeasonSearchUrls(string seriesTitle, int seasonNumber, int episodeWildcard)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
protected override string NzbDownloadUrl(SyndicationItem item)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user