Fixed: (Indexers) Add SupportsPagination to prevent fetching the first page multiple times

This commit is contained in:
Bogdan
2023-03-05 18:37:04 +02:00
parent d4c5e39c9c
commit 4348ebe187
22 changed files with 69 additions and 45 deletions
+2 -6
View File
@@ -36,6 +36,7 @@ namespace NzbDrone.Core.Indexers
public abstract bool SupportsRss { get; }
public abstract bool SupportsSearch { get; }
public abstract bool SupportsRedirect { get; }
public abstract bool SupportsPagination { get; }
public abstract IndexerCapabilities Capabilities { get; protected set; }
public IndexerBase(IIndexerStatusService indexerStatusService, IConfigService configService, Logger logger)
@@ -51,12 +52,7 @@ namespace NzbDrone.Core.Indexers
{
var attributes = GetType().GetCustomAttributes(false);
foreach (ObsoleteAttribute attribute in attributes.OfType<ObsoleteAttribute>())
{
return true;
}
return false;
return attributes.OfType<ObsoleteAttribute>().Any();
}
public virtual ProviderMessage Message => null;